Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Pattern/OutputCache.php
Expand Up @@ -85,7 +85,7 @@ public function end()
throw new Exception\RuntimeException('Output cache not started');
}

$output = ob_end_flush();
$output = ob_get_flush();
if ($output === false) {
throw new Exception\RuntimeException('Output buffering not active');
}
Expand Down
1 change: 1 addition & 0 deletions test/Pattern/OutputCacheTest.php
Expand Up @@ -79,6 +79,7 @@ public function testStartEndCacheMiss()
$data = ob_get_clean();

$this->assertEquals($output, $data);
$this->assertEquals($output, $this->_pattern->getOptions()->getStorage()->getItem($key));
}

public function testStartEndCacheHit()
Expand Down

0 comments on commit 4abdf38

Please sign in to comment.