mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-09-25 13:59:08 +02:00
17 lines
398 B
PHP
17 lines
398 B
PHP
<?php
|
|
|
|
namespace DesignPatterns\More\Delegation\Tests;
|
|
|
|
use DesignPatterns\More\Delegation;
|
|
|
|
class DelegationTest extends \PHPUnit_Framework_TestCase
|
|
{
|
|
public function testHowTeamLeadWriteCode()
|
|
{
|
|
$junior = new Delegation\JuniorDeveloper();
|
|
$teamLead = new Delegation\TeamLead($junior);
|
|
|
|
$this->assertEquals($junior->writeBadCode(), $teamLead->writeCode());
|
|
}
|
|
}
|