diff --git a/test/Unit/Dispatcher/PageDispatcher.test.php b/test/Unit/Dispatcher/PageDispatcher.test.php index 35063861..69f55d96 100644 --- a/test/Unit/Dispatcher/PageDispatcher.test.php +++ b/test/Unit/Dispatcher/PageDispatcher.test.php @@ -238,4 +238,12 @@ public function testGetFilenameRequestedFromUri($uri) { // } +public function testDispatcherFlushes() { + $html = "

Test

"; + $this->expectOutputRegex("/.*

Test<\/h1>.*<\/html>/s"); + $content = $this->dispatcher->createResponseContent($html); + + $content->flush(); +} + }# \ No newline at end of file