From 484548dc49de9d3f7612795735b51ad84227b3d6 Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Wed, 19 Feb 2014 13:45:05 -0500 Subject: [PATCH] Remove PHP 5.2 from testing --- .travis.yml | 2 -- tests/core/core.php | 32 ++++++++++++++++---------------- 2 files changed, 16 insertions(+), 18 deletions(-) diff --git a/.travis.yml b/.travis.yml index 89574cc..43ab33b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,6 @@ language: php php: - - 5.2 - 5.3 - 5.4 - 5.5 @@ -17,5 +16,4 @@ script: cd tests && phpunit --coverage-text matrix: allow_failures: - - php: 5.2 - php: hhvm \ No newline at end of file diff --git a/tests/core/core.php b/tests/core/core.php index 1d201dd..b3f0d83 100644 --- a/tests/core/core.php +++ b/tests/core/core.php @@ -7,20 +7,20 @@ * @author Timothy J. Warren * @copyright Copyright (c) 2012 - 2014 * @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 - * + * * @extends UnitTestCase */ class CoreTest extends Query_TestCase { - + /** * __construct function. - * + * * @access public * @return void */ @@ -28,25 +28,25 @@ class CoreTest extends Query_TestCase { { parent::__construct(); } - + // -------------------------------------------------------------------------- - + /** * TestPHPVersion function. - * + * * @access public * @return void */ public function testPHPVersion() { - $this->assertTrue(version_compare(PHP_VERSION, "5.2", "ge")); + $this->assertTrue(version_compare(PHP_VERSION, "5.3", "ge")); } - + // -------------------------------------------------------------------------- - + /** * TestHasPDO function. - * + * * @access public * @return void */ @@ -54,8 +54,8 @@ class CoreTest extends Query_TestCase { { // PDO class exists $this->assertTrue(class_exists('PDO')); - - + + // Make sure at least one of the supported drivers is enabled $supported = array( 'mysql', @@ -63,11 +63,11 @@ class CoreTest extends Query_TestCase { 'odbc', 'sqlite', ); - + $drivers = PDO::getAvailableDrivers(); - + $num_supported = count(array_intersect($drivers, $supported)); - + $this->assertTrue($num_supported > 0); } } \ No newline at end of file