create a Test folder for each pattern

This commit is contained in:
Antonio Spinelli
2014-05-05 12:00:18 -03:00
parent 14a9dfe7cf
commit 0c774a89e4
31 changed files with 43 additions and 36 deletions

View File

@@ -1,6 +1,8 @@
<?php
namespace DesignPatterns\Creational\Pool;
namespace DesignPatterns\Creational\Pool\Tests;
use DesignPatterns\Creational\Pool\Pool;
class TestWorker
{
@@ -13,7 +15,7 @@ class PoolTest extends \PHPUnit_Framework_TestCase
public function testPool()
{
$pool = new Pool('DesignPatterns\Creational\Pool\TestWorker');
$pool = new Pool('DesignPatterns\Creational\Pool\Tests\TestWorker');
$worker = $pool->get();
$this->assertEquals(1, $worker->id);