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(); }
/** * @return bool */ public static function supported() : bool { return EngineInfo::extensionLoaded('json'); }