Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'zf2/master' into feature/doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Show file tree
Hide file tree
Showing 25 changed files with 111 additions and 293 deletions.
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

6 changes: 3 additions & 3 deletions 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",
Expand All @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/Config.php
Expand Up @@ -10,9 +10,9 @@

namespace Zend\Config;

use ArrayAccess;
use Countable;
use Iterator;
use ArrayAccess;
use Zend\Stdlib\ArrayUtils;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Processor/Queue.php
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Processor/Token.php
Expand Up @@ -10,9 +10,9 @@

namespace Zend\Config\Processor;

use Traversable;
use Zend\Config\Config;
use Zend\Config\Exception;
use Traversable;

/**
* @category Zend
Expand Down
2 changes: 1 addition & 1 deletion src/Reader/Json.php
Expand Up @@ -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.
Expand Down
22 changes: 5 additions & 17 deletions src/ReaderPluginManager.php
@@ -1,21 +1,11 @@
<?php
/**
* Zend Framework
* Zend Framework (http://framework.zend.com/)
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@zend.com so we can send you a copy immediately.
*
* @category Zend
* @package Zend_Config
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Config
*/

namespace Zend\Config;
Expand All @@ -25,8 +15,6 @@
/**
* @category Zend
* @package Zend_Config
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class ReaderPluginManager extends AbstractPluginManager
{
Expand Down
2 changes: 1 addition & 1 deletion src/Writer/AbstractWriter.php
Expand Up @@ -11,8 +11,8 @@
namespace Zend\Config\Writer;

use Traversable;
use Zend\Config\Exception;
use Zend\Config\Config;
use Zend\Config\Exception;
use Zend\Stdlib\ArrayUtils;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Writer/Xml.php
Expand Up @@ -10,8 +10,8 @@

namespace Zend\Config\Writer;

use Zend\Config\Exception;
use XMLWriter;
use Zend\Config\Exception;

/**
* @category Zend
Expand Down
39 changes: 10 additions & 29 deletions test/ConfigTest.php
@@ -1,22 +1,11 @@
<?php
/**
* Zend Framework
* Zend Framework (http://framework.zend.com/)
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@zend.com so we can send you a copy immediately.
*
* @category Zend
* @package Zend_Config
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Config
*/

namespace ZendTest\Config;
Expand All @@ -27,8 +16,6 @@
* @category Zend
* @package Zend_Config
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @group Zend_Config
*/
class ConfigTest extends \PHPUnit_Framework_TestCase
Expand Down Expand Up @@ -473,20 +460,14 @@ public function testMergeHonoursAllowModificationsFlagAtAllLevels()
$config2 = new Config(array(), true);

$config2->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);
}

/**
Expand Down
23 changes: 5 additions & 18 deletions test/FactoryTest.php
@@ -1,22 +1,11 @@
<?php
/**
* Zend Framework
* Zend Framework (http://framework.zend.com/)
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@zend.com so we can send you a copy immediately.
*
* @category Zend
* @package Zend_Config
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Config
*/

namespace ZendTest\Config;
Expand All @@ -27,8 +16,6 @@
* @category Zend
* @package Zend_Config
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @group Zend_Config
*/
class FactoryTest extends \PHPUnit_Framework_TestCase
Expand Down
23 changes: 5 additions & 18 deletions test/ProcessorTest.php
@@ -1,22 +1,11 @@
<?php
/**
* Zend Framework
* Zend Framework (http://framework.zend.com/)
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@zend.com so we can send you a copy immediately.
*
* @category Zend
* @package Zend_Config
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Config
*/

namespace ZendTest\Config;
Expand All @@ -37,8 +26,6 @@
* @category Zend
* @package Zend_Config
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @group Zend_Config
*/
class ProcessorTest extends \PHPUnit_Framework_TestCase
Expand Down
23 changes: 5 additions & 18 deletions test/Reader/AbstractReaderTestCase.php
@@ -1,22 +1,11 @@
<?php
/**
* Zend Framework
* Zend Framework (http://framework.zend.com/)
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@zend.com so we can send you a copy immediately.
*
* @category Zend
* @package Zend_Config
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Config
*/

namespace ZendTest\Config\Reader;
Expand All @@ -29,8 +18,6 @@
* @category Zend
* @package Zend_Config
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @group Zend_Config
*/
abstract class AbstractReaderTestCase extends TestCase
Expand Down
23 changes: 5 additions & 18 deletions test/Reader/IniTest.php
@@ -1,22 +1,11 @@
<?php
/**
* Zend Framework
* Zend Framework (http://framework.zend.com/)
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@zend.com so we can send you a copy immediately.
*
* @category Zend
* @package Zend_Config
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Config
*/

namespace ZendTest\Config\Reader;
Expand All @@ -27,8 +16,6 @@
* @category Zend
* @package Zend_Config
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @group Zend_Config
*/
class IniTest extends AbstractReaderTestCase
Expand Down
23 changes: 5 additions & 18 deletions test/Reader/JsonTest.php
@@ -1,22 +1,11 @@
<?php
/**
* Zend Framework
* Zend Framework (http://framework.zend.com/)
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@zend.com so we can send you a copy immediately.
*
* @category Zend
* @package Zend_Config
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Config
*/

namespace ZendTest\Config\Reader;
Expand All @@ -27,8 +16,6 @@
* @category Zend
* @package Zend_Config
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @group Zend_Config
*/
class JsonTest extends AbstractReaderTestCase
Expand Down
8 changes: 8 additions & 0 deletions test/Reader/TestAssets/DummyReader.php
@@ -1,4 +1,12 @@
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Config
*/

namespace ZendTest\Config\Reader\TestAssets;

Expand Down

0 comments on commit 18f93e0

Please sign in to comment.