Attempt with mysql
This commit is contained in:
parent
94758ecfb5
commit
8e6619bda5
15
.travis.yml
15
.travis.yml
@ -5,13 +5,14 @@ phps:
|
|||||||
- 5.3
|
- 5.3
|
||||||
- 5.4
|
- 5.4
|
||||||
|
|
||||||
#env:
|
env:
|
||||||
# - DB=mysql
|
- DB=mysql
|
||||||
# - DB=pgsql
|
- DB=pgsql
|
||||||
# - DB=sqlite
|
- DB=sqlite
|
||||||
|
|
||||||
#before_script:
|
before_script:
|
||||||
# - mysql -e 'CREATE DATABASE test;'
|
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS test;' -U postgres; fi"
|
||||||
# - psql -c 'CREATE DATABASE test;' -U postgres
|
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'create database test;' -U postgres; fi"
|
||||||
|
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS test;'; fi"
|
||||||
|
|
||||||
script: php ./tests/index.php
|
script: php ./tests/index.php
|
@ -29,6 +29,10 @@ class MySQLTest extends DBTest {
|
|||||||
|
|
||||||
$this->db = new MySQL("host={$params->host};port={$params->port};dbname={$params->database}", $params->user, $params->pass);
|
$this->db = new MySQL("host={$params->host};port={$params->port};dbname={$params->database}", $params->user, $params->pass);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$this->db = new MySQL('host=127.0.0.1;dbname=test', 'root');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function TestExists()
|
function TestExists()
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user