From c07a4fcf14c23f7f47a81f549f4d454ea5c98e01 Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Thu, 6 Feb 2014 16:48:52 -0500 Subject: [PATCH] Update sqlite test for explain, attempt firebird tests on Travis CI --- .travis.yml | 7 ++++ tests/databases/sqlite/sqlite-qb.php | 52 +++++++++++++++++++++++----- 2 files changed, 50 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index 05fb06b..668774b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,12 @@ language: php +before_setup: + - sudo add-apt-repository ppa:mapopa -qq + - sudo apt-get update -qq + - sudo apt-get install firebird2.5-classic -qq + - sudo dpkg-reconfigure firebird2.5-classic -qq + - sudo apt-get install php5-interbase -qq + php: - 5.2 - 5.3 diff --git a/tests/databases/sqlite/sqlite-qb.php b/tests/databases/sqlite/sqlite-qb.php index 7b030b5..27862eb 100644 --- a/tests/databases/sqlite/sqlite-qb.php +++ b/tests/databases/sqlite/sqlite-qb.php @@ -73,17 +73,51 @@ $res = $query->fetchAll(PDO::FETCH_ASSOC); - var_export($res); + $expected_possibilities = array(); - $expected = array ( - array ( - 'selectid' => '0', - 'order' => '0', - 'from' => '0', - 'detail' => 'SEARCH TABLE create_test USING INTEGER PRIMARY KEY (rowid>? AND rowid '0', + 'from' => '0', + 'detail' => 'TABLE create_test USING PRIMARY KEY', + ) ); - //$this->assertEqual($expected, $res); + $expected_possibilities[] = array ( + array ( + 'selectid' => '0', + 'order' => '0', + 'from' => '0', + 'detail' => 'SEARCH TABLE create_test USING INTEGER PRIMARY KEY (rowid>? AND rowid '0', + 'order' => '0', + 'from' => '0', + 'detail' => 'SEARCH TABLE create_test USING INTEGER PRIMARY KEY (rowid>? AND rowidassertTrue(TRUE); + $passed = TRUE; + } + } + + // Well, apparently not an expected possibility + if ( ! $passed) + { + var_export($res); + $this->assertTrue(FALSE); + } } } \ No newline at end of file