| Total Complexity | 2 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | class ChainOfResponsibilityTest extends PHPUnit_Framework_TestCase |
||
| 23 | { |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var Chain |
||
| 27 | */ |
||
| 28 | protected $chain; |
||
| 29 | |||
| 30 | protected function setUp(): void |
||
| 31 | { |
||
| 32 | $this->chain = new Chain(); |
||
| 33 | $this->chain->addToChain(NoticeHandler::class); |
||
| 34 | $this->chain->addToChain(WarningHandler::class); |
||
| 35 | $this->chain->addToChain(ErrorHandler::class); |
||
| 36 | } |
||
| 37 | |||
| 38 | public function testChainRun(): void |
||
| 55 | } |
||
| 56 | } |
||
| 57 |