isHHVM() public static method

Returns true when the runtime used is HHVM.
public static isHHVM ( ) : boolean
return boolean
Example #1
0
 protected function setUp()
 {
     parent::setUp();
     if (!class_exists('\\JBZoo\\Utils\\Sys')) {
         throw new Exception('jbzoo/utils required for HttpServer unit-tests');
     }
     if (!class_exists('\\JBZoo\\HttpClient\\HttpClient')) {
         throw new Exception('jbzoo/http-client required for HttpServer unit-tests');
     }
     if (Sys::isPHP53() || Sys::isHHVM()) {
         skip('PHP 5.3.x/7.0/hhvm doen\'t support built-in web-server');
     }
     FS::rmdir(PROJECT_BUILD . '/coverage_cov');
     FS::rmdir(PROJECT_BUILD . '/coverage_html');
     FS::rmdir(PROJECT_BUILD . '/coverage_xml');
 }
Example #2
0
 /**
  * @covers JBZoo\Utils\Sys::isHHVM
  */
 public function testCanBeDetected()
 {
     $this->assertInternalType('boolean', Sys::isHHVM());
 }