assertEquals($expected, $config->isUseArnRegion()); } public function correctValueCases() { return [ [true, true], [false, false], ['1', true], ['0', false], ['true', true], ['false', false], [1, true], [0, false], ]; } public function testToArray() { $config = new Configuration(true); $expected = [ 'use_arn_region' => true, ]; $this->assertEquals($expected, $config->toArray()); } public function testThrowsOnInvalidEndpointsType() { $this->expectExceptionMessage("'use_arn_region' config option must be a boolean value."); $this->expectException(\Aws\S3\UseArnRegion\Exception\ConfigurationException::class); new Configuration('not a boolean'); } }