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();
}
public function writeBadCode(): string
{
//note that we are passing $this from teamLead context

View File

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