This commit is contained in:
maximkou
2014-03-02 22:01:59 +04:00
parent adec443d9c
commit bb52f47835

View File

@@ -11,9 +11,8 @@ 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());
$junior = new Delegation\JuniorDeveloper();
$teamLead = new Delegation\TeamLead($junior);
$this->assertEquals($junior->writeBadCode(), $teamLead->writeCode());
}
}