mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-09-26 22:39:11 +02:00
Fix test
This commit is contained in:
@@ -11,9 +11,8 @@ class DelegationTest extends \PHPUnit_Framework_TestCase
|
|||||||
{
|
{
|
||||||
public function testHowTeamLeadWriteCode()
|
public function testHowTeamLeadWriteCode()
|
||||||
{
|
{
|
||||||
$teamLead = new Delegation\TeamLead(
|
$junior = new Delegation\JuniorDeveloper();
|
||||||
new Delegation\JuniorDeveloper()
|
$teamLead = new Delegation\TeamLead($junior);
|
||||||
);
|
$this->assertEquals($junior->writeBadCode(), $teamLead->writeCode());
|
||||||
$this->assertEquals("Some junior developer generated code...", $teamLead->writeCode());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user