2
0

HtmlOutputTest.php 718 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace Test\Michel\Debug;
  3. use Michel\Debug\Output\VarDumperOutput\HtmlOutput;
  4. use Michel\UniTester\TestCase;
  5. class HtmlOutputTest extends TestCase
  6. {
  7. protected function setUp(): void
  8. {
  9. // TODO: Implement setUp() method.
  10. }
  11. protected function tearDown(): void
  12. {
  13. // TODO: Implement tearDown() method.
  14. }
  15. protected function execute(): void
  16. {
  17. $this->testInspectItem();
  18. }
  19. public function testInspectItem(): void
  20. {
  21. $output = function (string $dumped) {
  22. $this->assertTrue(strip_tags($dumped) !== $dumped);
  23. };
  24. $htmlOutput = new HtmlOutput(5, $output);
  25. $htmlOutput->print(['key' => 'value']);
  26. }
  27. }