File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ public function writeCode(): string
21
21
{
22
22
return $ this ->junior ->writeBadCode ();
23
23
}
24
+
24
25
public function writeBadCode (): string
25
26
{
26
27
//note that we are passing $this from teamLead context
Original file line number Diff line number Diff line change 7
7
8
8
class DelegationTest extends TestCase
9
9
{
10
- /**
11
- * @test
12
- */
13
- public function teamLeadCanBlameJuniorForBadCode ()
10
+ public function testTeamLeadCanBlameJuniorForBadCode ()
14
11
{
15
12
$ junior = new Delegation \JuniorDeveloper ();
16
13
$ teamLead = new Delegation \TeamLead ($ junior );
17
14
18
15
$ this ->assertEquals ($ junior ->writeBadCode (), $ teamLead ->writeCode ());
19
16
}
20
17
21
- /**
22
- * @test
23
- */
24
- public function teamLeadCanWriteBadCode ()
18
+ public function testTeamLeadCanWriteBadCode ()
25
19
{
26
20
$ junior = new Delegation \JuniorDeveloper ();
27
21
$ teamLead = new Delegation \TeamLead ($ junior );
You can’t perform that action at this time.
0 commit comments