fix test annotation and one line separation issues

This commit is contained in:
Miroslav Trninic
2018-05-13 19:19:53 +02:00
parent 63220c73c6
commit bb22ef0e0f
2 changed files with 3 additions and 8 deletions

View File

@@ -21,6 +21,7 @@ class TeamLead
{ {
return $this->junior->writeBadCode(); return $this->junior->writeBadCode();
} }
public function writeBadCode(): string public function writeBadCode(): string
{ {
//note that we are passing $this from teamLead context //note that we are passing $this from teamLead context

View File

@@ -7,10 +7,7 @@ use PHPUnit\Framework\TestCase;
class DelegationTest extends TestCase class DelegationTest extends TestCase
{ {
/** public function testTeamLeadCanBlameJuniorForBadCode()
* @test
*/
public function teamLeadCanBlameJuniorForBadCode()
{ {
$junior = new Delegation\JuniorDeveloper(); $junior = new Delegation\JuniorDeveloper();
$teamLead = new Delegation\TeamLead($junior); $teamLead = new Delegation\TeamLead($junior);
@@ -18,10 +15,7 @@ class DelegationTest extends TestCase
$this->assertEquals($junior->writeBadCode(), $teamLead->writeCode()); $this->assertEquals($junior->writeBadCode(), $teamLead->writeCode());
} }
/** public function testTeamLeadCanWriteBadCode()
* @test
*/
public function teamLeadCanWriteBadCode()
{ {
$junior = new Delegation\JuniorDeveloper(); $junior = new Delegation\JuniorDeveloper();
$teamLead = new Delegation\TeamLead($junior); $teamLead = new Delegation\TeamLead($junior);