Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bb52f47

Browse files
committed
Fix test
1 parent adec443 commit bb52f47

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Tests/Delegation/DelegationTest.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ class DelegationTest extends \PHPUnit_Framework_TestCase
1111
{
1212
public function testHowTeamLeadWriteCode()
1313
{
14-
$teamLead = new Delegation\TeamLead(
15-
new Delegation\JuniorDeveloper()
16-
);
17-
$this->assertEquals("Some junior developer generated code...", $teamLead->writeCode());
14+
$junior = new Delegation\JuniorDeveloper();
15+
$teamLead = new Delegation\TeamLead($junior);
16+
$this->assertEquals($junior->writeBadCode(), $teamLead->writeCode());
1817
}
1918
}

0 commit comments

Comments
 (0)