featureExists() public static method

Tests if the named feature exists in the current environment.
public static featureExists ( string $featureID ) : boolean | null
$featureID string The identifier for the feature, e.g. 'db/pdo'.
return boolean | null Returns true or false, or null if an error occured.
コード例 #1
0
ファイル: TextTest.php プロジェクト: drewm/morse
 public function testIntl()
 {
     $result = Morse::featureExists('text/intl');
     $this->assertTrue($result === true || $result === false);
 }
コード例 #2
0
ファイル: CryptoTest.php プロジェクト: drewm/morse
 public function testPassword()
 {
     $result = Morse::featureExists('crypto/password');
     $this->assertTrue($result === true || $result === false);
 }
コード例 #3
0
ファイル: DataTest.php プロジェクト: drewm/morse
 public function testJson()
 {
     $result = Morse::featureExists('data/json');
     $this->assertTrue($result === true || $result === false);
 }
コード例 #4
0
ファイル: FileTest.php プロジェクト: drewm/morse
 public function testZip()
 {
     $result = Morse::featureExists('file/zip');
     $this->assertTrue($result === true || $result === false);
 }
コード例 #5
0
ファイル: ImageTest.php プロジェクト: drewm/morse
 public function testImagick()
 {
     $result = Morse::featureExists('image/imagick');
     $this->assertTrue($result === true || $result === false);
 }
コード例 #6
0
ファイル: DbTest.php プロジェクト: drewm/morse
 public function testPdo_Pgsql()
 {
     $result = Morse::featureExists('db/pdo-pgsql');
     $this->assertTrue($result === true || $result === false);
 }
コード例 #7
0
ファイル: CacheTest.php プロジェクト: drewm/morse
 public function testOpcache()
 {
     $result = Morse::featureExists('cache/opcache');
     $this->assertTrue($result === true || $result === false);
 }
コード例 #8
0
ファイル: ProtocolTest.php プロジェクト: drewm/morse
 public function testLdap()
 {
     $result = Morse::featureExists('protocol/ldap');
     $this->assertTrue($result === true || $result === false);
 }
コード例 #9
0
ファイル: SystemTest.php プロジェクト: drewm/morse
 public function testProc_open()
 {
     $result = Morse::featureExists('system/proc_open');
     $this->assertTrue($result === true || $result === false);
 }
コード例 #10
0
ファイル: HttpTest.php プロジェクト: drewm/morse
 public function testOpenssl()
 {
     $result = Morse::featureExists('http/openssl');
     $this->assertTrue($result === true || $result === false);
 }
コード例 #11
0
ファイル: NumberTest.php プロジェクト: drewm/morse
 public function testMultibyte()
 {
     $result = Morse::featureExists('number/bigint');
     $this->assertTrue($result === true || $result === false);
 }