From 0e8c982be2210e0dc9b82c11ad43ce2dacb6de93 Mon Sep 17 00:00:00 2001 From: Yuriy Kozyrev Date: Wed, 6 Aug 2014 11:36:51 +0400 Subject: [PATCH] Moving Files --- src/Components/{ => Collection}/Collection.php | 3 ++- src/{Components => Interfaces}/IArrayable.php | 2 +- tests/CollectionTest.php | 4 ++-- tests/Mock.php | 2 +- tests/PerformanceTest.php | 2 +- 5 files changed, 7 insertions(+), 6 deletions(-) rename src/Components/{ => Collection}/Collection.php (98%) rename src/{Components => Interfaces}/IArrayable.php (86%) diff --git a/src/Components/Collection.php b/src/Components/Collection/Collection.php similarity index 98% rename from src/Components/Collection.php rename to src/Components/Collection/Collection.php index 2cd4550..a96f7a4 100644 --- a/src/Components/Collection.php +++ b/src/Components/Collection/Collection.php @@ -1,6 +1,6 @@ */ -namespace Kozz\Components; +namespace Kozz\Interfaces; interface IArrayable { diff --git a/tests/CollectionTest.php b/tests/CollectionTest.php index 1cf60c4..2e1636e 100644 --- a/tests/CollectionTest.php +++ b/tests/CollectionTest.php @@ -6,7 +6,7 @@ namespace Kozz\Tests; -use Kozz\Components\Collection; +use Kozz\Components\Collection\Collection; class CollectionTest extends \PHPUnit_Framework_TestCase { @@ -14,7 +14,7 @@ class CollectionTest extends \PHPUnit_Framework_TestCase public function testInit() { $collection = new Collection(); - $this->assertInstanceOf('Kozz\Components\Collection', $collection); + $this->assertInstanceOf('Kozz\Components\Collection\Collection', $collection); } public function testArrayAccessCountable() diff --git a/tests/Mock.php b/tests/Mock.php index 1531971..8adeb80 100644 --- a/tests/Mock.php +++ b/tests/Mock.php @@ -6,7 +6,7 @@ namespace Kozz\Tests; -use Kozz\Components\IArrayable; +use Kozz\Interfaces\IArrayable; class Mock implements IArrayable { diff --git a/tests/PerformanceTest.php b/tests/PerformanceTest.php index a474160..dba5aef 100644 --- a/tests/PerformanceTest.php +++ b/tests/PerformanceTest.php @@ -9,7 +9,7 @@ ini_set('xdebug.profiler_enable', 0); if(function_exists('xdebug_disable')) { xdebug_disable(); } -use Kozz\Components\Collection; +use Kozz\Components\Collection\Collection; use Symfony\Component\Stopwatch\Stopwatch; class PerformanceTest extends \PHPUnit_Framework_TestCase