PSR-0 with tests

This commit is contained in:
Trismegiste
2013-05-11 01:17:22 +02:00
parent 5f457c2701
commit 6443fecebc
5 changed files with 56 additions and 27 deletions

View File

@@ -0,0 +1,25 @@
<?php
/*
* DesignPatternPHP
*/
namespace DesignPatterns\Test\Composite;
use DesignPatterns\Composite;
/**
* FormTest tests the composite pattern on Form
*/
class FormTest extends \PHPUnit_Framework_TestCase
{
public function testRender()
{
$form = new Composite\Form();
$form->addElement(new Composite\TextElement());
$form->addElement(new Composite\InputElement());
echo $form->render();
}
}