Skip to content

Commit 0c774a8

Browse files
create a Test folder for each pattern
1 parent 14a9dfe commit 0c774a8

File tree

31 files changed

+43
-36
lines changed

31 files changed

+43
-36
lines changed

Behavioral/ChainOfResponsibilities/ChainTest.php renamed to Behavioral/ChainOfResponsibilities/Tests/ChainTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace DesignPatterns\Behavioral\ChainOfResponsibilities;
3+
namespace DesignPatterns\Behavioral\ChainOfResponsibilities\Tests;
44

55
use DesignPatterns\Behavioral\ChainOfResponsibilities\Request;
66
use DesignPatterns\Behavioral\ChainOfResponsibilities\Responsible\FastStorage;

Behavioral/Command/CommandTest.php renamed to Behavioral/Command/Tests/CommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace DesignPatterns\Behavioral\Command;
3+
namespace DesignPatterns\Behavioral\Command\Tests;
44

55
use DesignPatterns\Behavioral\Command\Invoker;
66
use DesignPatterns\Behavioral\Command\Receiver;

Behavioral/Iterator/IteratorTest.php renamed to Behavioral/Iterator/Tests/IteratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace DesignPatterns\Behavioral\Iterator;
3+
namespace DesignPatterns\Behavioral\Iterator\Tests;
44

55
use DesignPatterns\Behavioral\Iterator\Book;
66
use DesignPatterns\Behavioral\Iterator\BookList;

Behavioral/Mediator/MediatorTest.php renamed to Behavioral/Mediator/Tests/MediatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace DesignPatterns\Tests\Mediator;
3+
namespace DesignPatterns\Tests\Mediator\Tests;
44

55
use DesignPatterns\Behavioral\Mediator\Mediator;
66
use DesignPatterns\Behavioral\Mediator\Subsystem\Database;

Behavioral/Memento/MementoTest.php renamed to Behavioral/Memento/Tests/MementoTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?php
22

3-
namespace DesignPatterns\Behavioral\Memento;
3+
namespace DesignPatterns\Behavioral\Memento\Tests;
4+
5+
use DesignPatterns\Behavioral\Memento\Originator;
46

57
/**
68
* MementoTest tests the memento pattern

Behavioral/NullObject/LoggerTest.php renamed to Behavioral/NullObject/Tests/LoggerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace DesignPatterns\Behavioral\NullObject;
3+
namespace DesignPatterns\Behavioral\NullObject\Tests;
44

55
use DesignPatterns\Behavioral\NullObject\NullLogger;
66
use DesignPatterns\Behavioral\NullObject\Service;

Behavioral/Observer/ObserverTest.php renamed to Behavioral/Observer/Tests/ObserverTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace DesignPatterns\Behavioral\Observer;
3+
namespace DesignPatterns\Behavioral\Observer\Tests;
44

55
use DesignPatterns\Behavioral\Observer\UserObserver;
66
use DesignPatterns\Behavioral\Observer\User;

Behavioral/Specification/SpecificationTest.php renamed to Behavioral/Specification/Tests/SpecificationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace DesignPatterns\Behavioral\Specification;
3+
namespace DesignPatterns\Behavioral\Specification\Tests;
44

55
use DesignPatterns\Behavioral\Specification\PriceSpecification;
66
use DesignPatterns\Behavioral\Specification\Item;

Behavioral/Strategy/StrategyTest.php renamed to Behavioral/Strategy/Tests/StrategyTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace DesignPatterns\Behavioral\Strategy;
3+
namespace DesignPatterns\Behavioral\Strategy\Tests;
44

55
use DesignPatterns\Behavioral\Strategy\DateComparator;
66
use DesignPatterns\Behavioral\Strategy\IdComparator;

Behavioral/TemplateMethod/JourneyTest.php renamed to Behavioral/TemplateMethod/Tests/JourneyTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace DesignPatterns\Behavioral\TemplateMethod;
3+
namespace DesignPatterns\Behavioral\TemplateMethod\Tests;
44

55
use DesignPatterns\Behavioral\TemplateMethod;
66

0 commit comments

Comments
 (0)