mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-22 14:23:00 +02:00
fix test annotation and one line separation issues
This commit is contained in:
@@ -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
|
||||||
|
@@ -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);
|
||||||
|
Reference in New Issue
Block a user