コード例 #1
0
 public function testLoaded()
 {
     $assertions = ['EngineInfo::extensionLoaded' => [[true], [false], [true], [false]]];
     $this->runThroughAssertions($assertions);
     $this->expectException('\\InvalidArgumentException');
     $this->expectExceptionMessage('No extensions provided for loaded check');
     EngineInfo::extensionLoaded();
 }
コード例 #2
0
 /**
  * @return bool
  */
 public static function supported() : bool
 {
     return EngineInfo::extensionLoaded('json');
 }