Skip to content

Commit

Permalink
Tests: fixed HHVM detection
Browse files Browse the repository at this point in the history
  • Loading branch information
vasa-c committed Apr 1, 2016
1 parent 70c2720 commit c458b2c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ public static function clearDir($dir)
*/
public static function isHHVM()
{
static $isH;
if ($isH === null) {
$isH = (strpos(strtolower(PHP_VERSION), 'hiphop') !== false);
}
return $isH;
return defined('HHVM_VERSION');
}
}

0 comments on commit c458b2c

Please sign in to comment.