Total Complexity | 2 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | final class ViewTest extends TestCase |
||
15 | { |
||
16 | /** |
||
17 | * @return void |
||
18 | */ |
||
19 | public function testShouldNotAllowEmptyNames() |
||
20 | { |
||
21 | $presentationModel = new PresentationModel(); |
||
22 | $callback = function () { |
||
23 | // noop |
||
24 | }; |
||
25 | |||
26 | $this->expectException(InvalidArgumentException::class); |
||
27 | |||
28 | new View('', $presentationModel, $callback); |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @return void |
||
33 | */ |
||
34 | public function testShouldExecuteCallback() |
||
48 | } |
||
49 | } |
||
50 |