HummingBirdAnimeClient/tests/RequirementsTest.php

24 lines
426 B
PHP
Raw Normal View History

<?php
2017-02-15 11:49:38 -05:00
namespace Aviat\AnimeClient\Tests;
use PDO;
2017-02-15 16:40:18 -05:00
class RequirementsTest extends AnimeClientTestCase {
public function testPHPVersion()
{
$this->assertTrue(version_compare(PHP_VERSION, "5.4", "ge"));
}
public function testHasPDO()
{
$this->assertTrue(class_exists('PDO'));
}
public function testHasPDOSqlite()
{
$drivers = PDO::getAvailableDrivers();
$this->assertTrue(in_array('sqlite', $drivers));
}
}