From 467dd295c4b8353cec61b122f7a790100324c2c1 Mon Sep 17 00:00:00 2001 From: Greg Bowler Date: Tue, 12 Aug 2014 12:42:01 +0100 Subject: [PATCH] Test dispatcher flushes --- test/Unit/Dispatcher/PageDispatcher.test.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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