30 lines
551 B
PHP
30 lines
551 B
PHP
<?php
|
|
|
|
class RequirementsTest extends AnimeClient_TestCase {
|
|
|
|
public function testPHPVersion()
|
|
{
|
|
$this->assertTrue(version_compare(PHP_VERSION, "5.4", "ge"));
|
|
}
|
|
|
|
public function testHasGd()
|
|
{
|
|
$this->assertTrue(extension_loaded('gd'));
|
|
}
|
|
|
|
public function testHasMcrypt()
|
|
{
|
|
$this->assertTrue(extension_loaded('mcrypt'));
|
|
}
|
|
|
|
public function testHasPDO()
|
|
{
|
|
$this->assertTrue(class_exists('PDO'));
|
|
}
|
|
|
|
public function testHasPDOSqlite()
|
|
{
|
|
$drivers = PDO::getAvailableDrivers();
|
|
$this->assertTrue(in_array('sqlite', $drivers));
|
|
}
|
|
} |