Skip to content

Commit c8374c5

Browse files
felixuref3l1x
authored andcommitted
Tests: add NullControl coverage
1 parent 35b1773 commit c8374c5

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/Cases/UI/NullControl.phpt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php declare(strict_types = 1);
2+
3+
use Contributte\Application\UI\NullControl;
4+
use Contributte\Tester\Toolkit;
5+
use Tester\Assert;
6+
7+
require_once __DIR__ . '/../../bootstrap.php';
8+
9+
Toolkit::test(function (): void {
10+
$control = new NullControl();
11+
12+
ob_start();
13+
$control->render();
14+
$output = ob_get_clean();
15+
16+
Assert::same('', $output);
17+
});

0 commit comments

Comments
 (0)