diff --git a/src/Processor/Token.php b/src/Processor/Token.php index 0ba34a7..af6204c 100644 --- a/src/Processor/Token.php +++ b/src/Processor/Token.php @@ -200,7 +200,7 @@ protected function buildMap() * * @param Config $config * @return Config - * @throws InvalidArgumentException + * @throws Exception\InvalidArgumentException */ public function process(Config $config) { diff --git a/src/Reader/Ini.php b/src/Reader/Ini.php index fa431f6..3ef6bd4 100644 --- a/src/Reader/Ini.php +++ b/src/Reader/Ini.php @@ -63,7 +63,7 @@ public function getNestSeparator() * @see ReaderInterface::fromFile() * @param string $filename * @return array - * @throws Exception\InvalidArgumentException + * @throws Exception\RuntimeException */ public function fromFile($filename) { diff --git a/src/Reader/Yaml.php b/src/Reader/Yaml.php index c33ef29..bf34303 100644 --- a/src/Reader/Yaml.php +++ b/src/Reader/Yaml.php @@ -56,7 +56,7 @@ public function __construct($yamlDecoder = null) * * @param string|callable $yamlDecoder the decoder to set * @return Yaml - * @throws Exception\InvalidArgumentException + * @throws Exception\RuntimeException */ public function setYamlDecoder($yamlDecoder) { diff --git a/test/ConfigTest.php b/test/ConfigTest.php index cdb2dfa..8272d8b 100644 --- a/test/ConfigTest.php +++ b/test/ConfigTest.php @@ -330,42 +330,42 @@ public function testMerge() $this->assertEquals('bar', $configA->text); // config->numerical-> ... - $this->assertInstanceOf('\Zend\Config\Config',$configA->numerical); - $this->assertEquals('first',$configA->numerical->{0}); - $this->assertEquals('second',$configA->numerical->{1}); + $this->assertInstanceOf('\Zend\Config\Config', $configA->numerical); + $this->assertEquals('first', $configA->numerical->{0}); + $this->assertEquals('second', $configA->numerical->{1}); // config->numerical->{2}-> ... - $this->assertInstanceOf('\Zend\Config\Config',$configA->numerical->{2}); - $this->assertEquals('third',$configA->numerical->{2}->{0}); - $this->assertEquals(null,$configA->numerical->{2}->{1}); + $this->assertInstanceOf('\Zend\Config\Config', $configA->numerical->{2}); + $this->assertEquals('third', $configA->numerical->{2}->{0}); + $this->assertEquals(null, $configA->numerical->{2}->{1}); // config->numerical-> ... - $this->assertEquals('fourth',$configA->numerical->{3}); - $this->assertEquals('fifth',$configA->numerical->{4}); + $this->assertEquals('fourth', $configA->numerical->{3}); + $this->assertEquals('fifth', $configA->numerical->{4}); // config->numerical->{5} - $this->assertInstanceOf('\Zend\Config\Config',$configA->numerical->{5}); - $this->assertEquals('sixth',$configA->numerical->{5}->{0}); - $this->assertEquals(null,$configA->numerical->{5}->{1}); + $this->assertInstanceOf('\Zend\Config\Config', $configA->numerical->{5}); + $this->assertEquals('sixth', $configA->numerical->{5}->{0}); + $this->assertEquals(null, $configA->numerical->{5}->{1}); // config->misaligned - $this->assertInstanceOf('\Zend\Config\Config',$configA->misaligned); - $this->assertEquals('foo',$configA->misaligned->{2}); - $this->assertEquals('bar',$configA->misaligned->{3}); - $this->assertEquals('baz',$configA->misaligned->{4}); - $this->assertEquals(null,$configA->misaligned->{0}); + $this->assertInstanceOf('\Zend\Config\Config', $configA->misaligned); + $this->assertEquals('foo', $configA->misaligned->{2}); + $this->assertEquals('bar', $configA->misaligned->{3}); + $this->assertEquals('baz', $configA->misaligned->{4}); + $this->assertEquals(null, $configA->misaligned->{0}); // config->mixed - $this->assertInstanceOf('\Zend\Config\Config',$configA->mixed); - $this->assertEquals('bar',$configA->mixed->foo); - $this->assertSame(false,$configA->mixed->{0}); - $this->assertSame(null,$configA->mixed->{1}); + $this->assertInstanceOf('\Zend\Config\Config', $configA->mixed); + $this->assertEquals('bar', $configA->mixed->foo); + $this->assertSame(false, $configA->mixed->{0}); + $this->assertSame(null, $configA->mixed->{1}); // config->replaceAssoc - $this->assertSame(null,$configA->replaceAssoc); + $this->assertSame(null, $configA->replaceAssoc); // config->replaceNumerical - $this->assertSame(true,$configA->replaceNumerical); + $this->assertSame(true, $configA->replaceNumerical); } diff --git a/test/FactoryTest.php b/test/FactoryTest.php index ffd4836..461601c 100644 --- a/test/FactoryTest.php +++ b/test/FactoryTest.php @@ -128,7 +128,7 @@ public function testFactoryCanRegisterCustomReaderInstance() public function testFactoryCanRegisterCustomReaderPlugn() { $dummyReader = new Reader\TestAssets\DummyReader(); - Factory::getReaderPluginManager()->setService('DummyReader',$dummyReader); + Factory::getReaderPluginManager()->setService('DummyReader', $dummyReader); Factory::registerReader('dum', 'DummyReader');