JBZoo\Utils\Sys::isRealPHP PHP Method

isRealPHP() public static method

Returns true when the runtime used is PHP without the PHPDBG SAPI.
public static isRealPHP ( ) : boolean
return boolean
    public static function isRealPHP()
    {
        return !self::isHHVM() && !self::isPHPDBG();
    }

Usage Example

コード例 #1
0
ファイル: SysTest.php プロジェクト: jbzoo/utils
 /**
  * @covers JBZoo\Utils\Sys::isRealPHP
  * @uses   JBZoo\Utils\Sys::isHHVM
  */
 public function testCanBeDetected2()
 {
     $this->assertInternalType('boolean', Sys::isRealPHP());
 }