File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ class PHP_CodeCoverage
129129 public function __construct (PHP_CodeCoverage_Driver $ driver = NULL , PHP_CodeCoverage_Filter $ filter = NULL )
130130 {
131131 if ($ driver === NULL ) {
132- if (function_exists ( ' fb_enable_code_coverage ' )) {
132+ if (defined ( ' HPHP_VERSION ' )) {
133133 $ driver = new PHP_CodeCoverage_Driver_HHVM ;
134134 }
135135
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ class PHP_CodeCoverage_Driver_HHVM implements PHP_CodeCoverage_Driver
6262 */
6363 public function __construct ()
6464 {
65- if (!function_exists ( ' fb_enable_code_coverage ' )) {
65+ if (!defined ( ' HPHP_VERSION ' )) {
6666 throw new PHP_CodeCoverage_Exception ('This driver requires HHVM ' );
6767 }
6868 }
You can’t perform that action at this time.
0 commit comments