Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adec443 commit bb52f47Copy full SHA for bb52f47
Tests/Delegation/DelegationTest.php
@@ -11,9 +11,8 @@ class DelegationTest extends \PHPUnit_Framework_TestCase
11
{
12
public function testHowTeamLeadWriteCode()
13
14
- $teamLead = new Delegation\TeamLead(
15
- new Delegation\JuniorDeveloper()
16
- );
17
- $this->assertEquals("Some junior developer generated code...", $teamLead->writeCode());
+ $junior = new Delegation\JuniorDeveloper();
+ $teamLead = new Delegation\TeamLead($junior);
+ $this->assertEquals($junior->writeBadCode(), $teamLead->writeCode());
18
}
19
0 commit comments