it was created the Structural namespace and append its patterns

This commit is contained in:
Antonio Spinelli
2014-04-15 23:14:39 -03:00
parent 7bf6593e3f
commit 113f63a54f
37 changed files with 77 additions and 69 deletions

View File

@@ -2,12 +2,12 @@
namespace DesignPatterns\Test\Composite;
use DesignPatterns\Composite;
use DesignPatterns\Structural\Composite;
/**
* FormTest tests the composite pattern on Form
*/
class FormTest extends \PHPUnit_Framework_TestCase
class CompositeTest extends \PHPUnit_Framework_TestCase
{
public function testRender()
@@ -29,6 +29,6 @@ class FormTest extends \PHPUnit_Framework_TestCase
*/
public function testFormImplementsFormEelement()
{
$this->assertTrue(is_subclass_of('DesignPatterns\Composite\Form', 'DesignPatterns\Composite\FormElement'));
$this->assertTrue(is_subclass_of('DesignPatterns\Structural\Composite\Form', 'DesignPatterns\Structural\Composite\FormElement'));
}
}

View File

@@ -1,6 +1,6 @@
<?php
namespace DesignPatterns\Composite;
namespace DesignPatterns\Structural\Composite;
/**
* The composite node MUST extend the component contract. This is mandatory for building

View File

@@ -1,6 +1,6 @@
<?php
namespace DesignPatterns\Composite;
namespace DesignPatterns\Structural\Composite;
/**
* Class FormElement

View File

@@ -1,6 +1,6 @@
<?php
namespace DesignPatterns\Composite;
namespace DesignPatterns\Structural\Composite;
/**
* Class InputElement

View File

@@ -1,6 +1,6 @@
<?php
namespace DesignPatterns\Composite;
namespace DesignPatterns\Structural\Composite;
/**
* Class TextElement