mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-03-15 11:50:10 +01:00
fix test annotation and one line separation issues
This commit is contained in:
parent
63220c73c6
commit
bb22ef0e0f
@ -21,6 +21,7 @@ class TeamLead
|
||||
{
|
||||
return $this->junior->writeBadCode();
|
||||
}
|
||||
|
||||
public function writeBadCode(): string
|
||||
{
|
||||
//note that we are passing $this from teamLead context
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user