diff --git a/phpci.yml b/phpci.yml new file mode 100644 index 0000000..22b0c56 --- /dev/null +++ b/phpci.yml @@ -0,0 +1,19 @@ +build_settings: + verbose: true + ignore: + - "tests" + +setup: + env: + PHPCI: true + +test: + php_unit: + run_from: 'tests' + coverage: '../coverage/' + php_docblock_checker: + allowed_warnings: 0 + skip_classes: true + php_loc: + +complete: \ No newline at end of file diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 524d5a0..11d46ed 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -121,14 +121,4 @@ if (extension_loaded('pdo_sqlite')) Query($params); } -// If Firebird (interbase) extension does not exist, -// create a fake class to suppress errors from skipped tests -if ( ! function_exists('fbird_connect')) -{ - class Firebird { - public $sql; - public $util; - } -} - // End of bootstrap.php \ No newline at end of file diff --git a/tests/phpunit.xml b/tests/phpunit.xml index 9916d02..5720541 100644 --- a/tests/phpunit.xml +++ b/tests/phpunit.xml @@ -1,36 +1,36 @@ - - - ../coverage + colors="true" + stopOnFailure="false" + bootstrap="bootstrap.php"> + + + ../coverage ../docs - . - - - - - core/core.php - core/db_qp_test.php - - - databases/firebird/FirebirdTest.php - databases/firebird/FirebirdQBTest.php - - - databases/mysql/MySQLTest.php - databases/mysql/MySQLQBTest.php - - - databases/pgsql/PgSQLTest.php - databases/pgsql/PgSQLQBTest.php - - - databases/sqlite/SQLiteTest.php - databases/sqlite/SQLiteQBTest.php - - + . + + + + + core/core.php + core/db_qp_test.php + + + databases/firebird/FirebirdTest.php + databases/firebird/FirebirdQBTest.php + + + databases/mysql/MySQLTest.php + databases/mysql/MySQLQBTest.php + + + databases/pgsql/PgSQLTest.php + databases/pgsql/PgSQLQBTest.php + + + databases/sqlite/SQLiteTest.php + databases/sqlite/SQLiteQBTest.php + + \ No newline at end of file