Skip to content

Commit

Permalink
Test dispatcher flushes
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Aug 12, 2014
1 parent 8734afd commit 467dd29
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/Unit/Dispatcher/PageDispatcher.test.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,4 +238,12 @@ public function testGetFilenameRequestedFromUri($uri) {

// }

public function testDispatcherFlushes() {
$html = "<!doctype html><h1>Test</h1>";
$this->expectOutputRegex("/<!DOCTYPE html>.*<h1>Test<\/h1>.*<\/html>/s");
$content = $this->dispatcher->createResponseContent($html);

$content->flush();
}

}#

0 comments on commit 467dd29

Please sign in to comment.