Files
DesignPatternsPHP/More/Delegation/Tests/DelegationTest.php
Dominik Liebler 2b1de13391 PHP7 Delegation
2016-09-22 15:28:46 +02:00

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());
}
}