From 0c774a89e4fdf82da3645df1c9bc56d902d4abca Mon Sep 17 00:00:00 2001 From: Antonio Spinelli Date: Mon, 5 May 2014 12:00:18 -0300 Subject: [PATCH] create a Test folder for each pattern --- .../ChainOfResponsibilities/{ => Tests}/ChainTest.php | 2 +- Behavioral/Command/{ => Tests}/CommandTest.php | 2 +- Behavioral/Iterator/{ => Tests}/IteratorTest.php | 2 +- Behavioral/Mediator/{ => Tests}/MediatorTest.php | 2 +- Behavioral/Memento/{ => Tests}/MementoTest.php | 4 +++- Behavioral/NullObject/{ => Tests}/LoggerTest.php | 2 +- Behavioral/Observer/{ => Tests}/ObserverTest.php | 2 +- .../Specification/{ => Tests}/SpecificationTest.php | 2 +- Behavioral/Strategy/{ => Tests}/StrategyTest.php | 2 +- Behavioral/TemplateMethod/{ => Tests}/JourneyTest.php | 2 +- Behavioral/Visitor/{ => Tests}/VisitorTest.php | 2 +- .../AbstractFactory/{ => Tests}/AbstractFactoryTest.php | 2 +- Creational/Builder/{ => Tests}/DirectorTest.php | 2 +- .../FactoryMethod/{ => Tests}/FactoryMethodTest.php | 2 +- Creational/Pool/{ => Tests}/PoolTest.php | 6 ++++-- .../SimpleFactory/{ => Tests}/SimpleFactoryTest.php | 2 +- Creational/Singleton/{ => Tests}/SingletonTest.php | 2 +- .../StaticFactory/{ => Tests}/StaticFactoryTest.php | 2 +- More/Delegation/{ => Tests}/DelegationTest.php | 2 +- More/ServiceLocator/{ => Tests}/ServiceLocatorTest.php | 2 +- Structural/Adapter/{ => Tests}/AdapterTest.php | 2 +- Structural/Bridge/{ => Tests}/BridgeTest.php | 7 ++++++- Structural/Composite/{ => Tests}/CompositeTest.php | 2 +- Structural/DataMapper/{ => Tests}/DataMapperTest.php | 2 +- Structural/Decorator/{ => Tests}/DecoratorTest.php | 2 +- .../{ => Tests}/DependencyInjectionTest.php | 4 +--- Structural/DependencyInjection/{ => Tests}/config.php | 0 Structural/Facade/{ => Tests}/FacadeTest.php | 2 +- .../FluentInterface/{ => Tests}/FluentInterfaceTest.php | 2 +- Structural/Registry/{ => Tests}/RegistryTest.php | 2 +- phpunit.xml.dist | 8 ++++---- 31 files changed, 43 insertions(+), 36 deletions(-) rename Behavioral/ChainOfResponsibilities/{ => Tests}/ChainTest.php (97%) rename Behavioral/Command/{ => Tests}/CommandTest.php (93%) rename Behavioral/Iterator/{ => Tests}/IteratorTest.php (97%) rename Behavioral/Mediator/{ => Tests}/MediatorTest.php (95%) rename Behavioral/Memento/{ => Tests}/MementoTest.php (94%) rename Behavioral/NullObject/{ => Tests}/LoggerTest.php (94%) rename Behavioral/Observer/{ => Tests}/ObserverTest.php (96%) rename Behavioral/Specification/{ => Tests}/SpecificationTest.php (98%) rename Behavioral/Strategy/{ => Tests}/StrategyTest.php (97%) rename Behavioral/TemplateMethod/{ => Tests}/JourneyTest.php (94%) rename Behavioral/Visitor/{ => Tests}/VisitorTest.php (95%) rename Creational/AbstractFactory/{ => Tests}/AbstractFactoryTest.php (95%) rename Creational/Builder/{ => Tests}/DirectorTest.php (95%) rename Creational/FactoryMethod/{ => Tests}/FactoryMethodTest.php (95%) rename Creational/Pool/{ => Tests}/PoolTest.php (69%) rename Creational/SimpleFactory/{ => Tests}/SimpleFactoryTest.php (93%) rename Creational/Singleton/{ => Tests}/SingletonTest.php (92%) rename Creational/StaticFactory/{ => Tests}/StaticFactoryTest.php (90%) rename More/Delegation/{ => Tests}/DelegationTest.php (89%) rename More/ServiceLocator/{ => Tests}/ServiceLocatorTest.php (98%) rename Structural/Adapter/{ => Tests}/AdapterTest.php (95%) rename Structural/Bridge/{ => Tests}/BridgeTest.php (67%) rename Structural/Composite/{ => Tests}/CompositeTest.php (95%) rename Structural/DataMapper/{ => Tests}/DataMapperTest.php (98%) rename Structural/Decorator/{ => Tests}/DecoratorTest.php (97%) rename Structural/DependencyInjection/{ => Tests}/DependencyInjectionTest.php (76%) rename Structural/DependencyInjection/{ => Tests}/config.php (100%) rename Structural/Facade/{ => Tests}/FacadeTest.php (96%) rename Structural/FluentInterface/{ => Tests}/FluentInterfaceTest.php (89%) rename Structural/Registry/{ => Tests}/RegistryTest.php (86%) diff --git a/Behavioral/ChainOfResponsibilities/ChainTest.php b/Behavioral/ChainOfResponsibilities/Tests/ChainTest.php similarity index 97% rename from Behavioral/ChainOfResponsibilities/ChainTest.php rename to Behavioral/ChainOfResponsibilities/Tests/ChainTest.php index 9fe7f30fa..4733d6fdb 100644 --- a/Behavioral/ChainOfResponsibilities/ChainTest.php +++ b/Behavioral/ChainOfResponsibilities/Tests/ChainTest.php @@ -1,6 +1,6 @@ get(); $this->assertEquals(1, $worker->id); diff --git a/Creational/SimpleFactory/SimpleFactoryTest.php b/Creational/SimpleFactory/Tests/SimpleFactoryTest.php similarity index 93% rename from Creational/SimpleFactory/SimpleFactoryTest.php rename to Creational/SimpleFactory/Tests/SimpleFactoryTest.php index 123360978..1fffda3e7 100644 --- a/Creational/SimpleFactory/SimpleFactoryTest.php +++ b/Creational/SimpleFactory/Tests/SimpleFactoryTest.php @@ -1,6 +1,6 @@ - Behavioral - Creational - More - Structural + Behavioral/*/Tests + Creational/*/Tests + More/*/Tests + Structural/*/Tests