mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-10 17:04:01 +02:00
it was created the Structural namespace and append its patterns
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
}
|
@@ -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
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace DesignPatterns\Composite;
|
||||
namespace DesignPatterns\Structural\Composite;
|
||||
|
||||
/**
|
||||
* Class FormElement
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace DesignPatterns\Composite;
|
||||
namespace DesignPatterns\Structural\Composite;
|
||||
|
||||
/**
|
||||
* Class InputElement
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace DesignPatterns\Composite;
|
||||
namespace DesignPatterns\Structural\Composite;
|
||||
|
||||
/**
|
||||
* Class TextElement
|
||||
|
Reference in New Issue
Block a user