Remove PHP 5.2 from testing

This commit is contained in:
Timothy Warren 2014-02-19 13:45:05 -05:00
parent 65de660bff
commit 484548dc49
2 changed files with 16 additions and 18 deletions

View File

@ -1,7 +1,6 @@
language: php language: php
php: php:
- 5.2
- 5.3 - 5.3
- 5.4 - 5.4
- 5.5 - 5.5
@ -17,5 +16,4 @@ script: cd tests && phpunit --coverage-text
matrix: matrix:
allow_failures: allow_failures:
- php: 5.2
- php: hhvm - php: hhvm

View File

@ -7,20 +7,20 @@
* @author Timothy J. Warren * @author Timothy J. Warren
* @copyright Copyright (c) 2012 - 2014 * @copyright Copyright (c) 2012 - 2014
* @link https://github.com/aviat4ion/OpenSQLManager * @link https://github.com/aviat4ion/OpenSQLManager
* @license http://philsturgeon.co.uk/code/dbad-license * @license http://philsturgeon.co.uk/code/dbad-license
*/ */
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
/** /**
* CoreTest class - Compatibility and core functionality tests * CoreTest class - Compatibility and core functionality tests
* *
* @extends UnitTestCase * @extends UnitTestCase
*/ */
class CoreTest extends Query_TestCase { class CoreTest extends Query_TestCase {
/** /**
* __construct function. * __construct function.
* *
* @access public * @access public
* @return void * @return void
*/ */
@ -28,25 +28,25 @@ class CoreTest extends Query_TestCase {
{ {
parent::__construct(); parent::__construct();
} }
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
/** /**
* TestPHPVersion function. * TestPHPVersion function.
* *
* @access public * @access public
* @return void * @return void
*/ */
public function testPHPVersion() public function testPHPVersion()
{ {
$this->assertTrue(version_compare(PHP_VERSION, "5.2", "ge")); $this->assertTrue(version_compare(PHP_VERSION, "5.3", "ge"));
} }
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
/** /**
* TestHasPDO function. * TestHasPDO function.
* *
* @access public * @access public
* @return void * @return void
*/ */
@ -54,8 +54,8 @@ class CoreTest extends Query_TestCase {
{ {
// PDO class exists // PDO class exists
$this->assertTrue(class_exists('PDO')); $this->assertTrue(class_exists('PDO'));
// Make sure at least one of the supported drivers is enabled // Make sure at least one of the supported drivers is enabled
$supported = array( $supported = array(
'mysql', 'mysql',
@ -63,11 +63,11 @@ class CoreTest extends Query_TestCase {
'odbc', 'odbc',
'sqlite', 'sqlite',
); );
$drivers = PDO::getAvailableDrivers(); $drivers = PDO::getAvailableDrivers();
$num_supported = count(array_intersect($drivers, $supported)); $num_supported = count(array_intersect($drivers, $supported));
$this->assertTrue($num_supported > 0); $this->assertTrue($num_supported > 0);
} }
} }