Files
DesignPatternsPHP/Tests/Delegation/DelegationTest.php
2014-03-02 21:54:04 +04:00

20 lines
419 B
PHP

<?php
namespace DesignPatterns\Tests\Delegation;
use DesignPatterns\Delegation;
/**
* DelegationTest tests the delegation pattern
*/
class DelegationTest extends \PHPUnit_Framework_TestCase
{
public function testHowTeamLeadWriteCode()
{
$teamLead = new Delegation\TeamLead(
new Delegation\JuniorDeveloper()
);
$this->assertEquals("Some junior developer generated code...", $teamLead->writeCode());
}
}