diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index 21d57da..0000000 --- a/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "tools/phptools"] - path = tools/phptools - url = git://github.com/ralphschindler/PHPTools.git diff --git a/composer.json b/composer.json index 8cb3981..29d2be1 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "zendframework/zend-config", - "description": "Zend\\Config component", + "description": "provides a nested object property based user interface for accessing this configuration data within application code", "license": "BSD-3-Clause", "keywords": [ "zf2", @@ -9,11 +9,11 @@ "homepage": "https://github.com/zendframework/zend-config", "autoload": { "psr-4": { - "Zend\\Config\\": "src/" + "Zend\\Config": "src/" } }, "require": { - "php": ">=5.3.23", + "php": ">=5.3.3", "zendframework/zend-stdlib": "self.version" }, "require-dev": { diff --git a/src/Config.php b/src/Config.php index 70fa03a..ece2b09 100644 --- a/src/Config.php +++ b/src/Config.php @@ -10,9 +10,9 @@ namespace Zend\Config; +use ArrayAccess; use Countable; use Iterator; -use ArrayAccess; use Zend\Stdlib\ArrayUtils; /** diff --git a/src/Processor/Queue.php b/src/Processor/Queue.php index e369149..fb276ba 100644 --- a/src/Processor/Queue.php +++ b/src/Processor/Queue.php @@ -11,8 +11,8 @@ namespace Zend\Config\Processor; use Zend\Config\Config; -use Zend\Stdlib\PriorityQueue; use Zend\Config\Exception; +use Zend\Stdlib\PriorityQueue; /** * @category Zend diff --git a/src/Processor/Token.php b/src/Processor/Token.php index cf725ba..022daf5 100644 --- a/src/Processor/Token.php +++ b/src/Processor/Token.php @@ -10,9 +10,9 @@ namespace Zend\Config\Processor; +use Traversable; use Zend\Config\Config; use Zend\Config\Exception; -use Traversable; /** * @category Zend diff --git a/src/Reader/Json.php b/src/Reader/Json.php index 01a5f9e..a84b7e4 100644 --- a/src/Reader/Json.php +++ b/src/Reader/Json.php @@ -11,8 +11,8 @@ namespace Zend\Config\Reader; use Zend\Config\Exception; -use Zend\Json\Json as JsonFormat; use Zend\Json\Exception as JsonException; +use Zend\Json\Json as JsonFormat; /** * JSON config reader. diff --git a/src/ReaderPluginManager.php b/src/ReaderPluginManager.php index 008bd0d..c059725 100644 --- a/src/ReaderPluginManager.php +++ b/src/ReaderPluginManager.php @@ -1,21 +1,11 @@ merge($config); - try { - $config2->key2 = 'no'; - } catch (\Zend\Config\Exception\RuntimeException $e) { - $this->fail('Unexpected exception at top level has been raised: ' . $e->getMessage()); - } + + $config2->key2 = 'no'; + $this->assertEquals('no', $config2->key2); - try { - $config2->key->nested = 'no'; - } catch (\Zend\Config\Exception\RuntimeException $e) { - $this->fail('Unexpected exception on nested object has been raised: ' . $e->getMessage()); - } - $this->assertEquals('no', $config2->key->nested); + $config2->key->nested = 'no'; + $this->assertEquals('no', $config2->key->nested); } /** diff --git a/test/FactoryTest.php b/test/FactoryTest.php index 29f91f9..466c90f 100644 --- a/test/FactoryTest.php +++ b/test/FactoryTest.php @@ -1,22 +1,11 @@ getTestAssetFileName()); + if (file_exists($this->getTestAssetFileName())) { + if (!is_writable($this->getTestAssetFileName())) { + chmod($this->getTestAssetFileName(), 0777); + } + @unlink($this->getTestAssetFileName()); + } } public function testNoFilenameSet() diff --git a/test/Writer/IniTest.php b/test/Writer/IniTest.php index 94a0401..287ad4d 100644 --- a/test/Writer/IniTest.php +++ b/test/Writer/IniTest.php @@ -1,22 +1,11 @@