Skip to content

Commit

Permalink
Fix tests on hhvm
Browse files Browse the repository at this point in the history
  • Loading branch information
sagikazarmark committed Dec 7, 2018
1 parent f067611 commit f9423ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Stream.php
Expand Up @@ -19,7 +19,7 @@ class Stream implements StreamInterface
* @see http://php.net/manual/en/function.gzopen.php
*/
const READABLE_MODES = '/r|a\+|ab\+|w\+|wb\+|x\+|xb\+|c\+|cb\+/';
const WRITABLE_MODES = '/a|w|r\+|rw|x|c/';
const WRITABLE_MODES = '/a|w|r\+|rb\+|rw|x|c/';

private $stream;
private $size;
Expand Down
4 changes: 4 additions & 0 deletions tests/StreamTest.php
Expand Up @@ -241,6 +241,10 @@ public function testStreamReadingFreadError()
*/
public function testGzipStreamModes($mode, $readable, $writable)
{
if (defined('HHVM_VERSION')) {
$this->markTestSkipped('This does not work on HHVM.');
}

$r = gzopen('php://temp', $mode);
$stream = new Stream($r);

Expand Down

0 comments on commit f9423ab

Please sign in to comment.