Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
ddliu committed May 10, 2017
1 parent 9a94ff1 commit b3075dc
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ php:
- 5.5
- 5.6
- 7.0
- hhvm

matrix:
allow_failures:
- php: hhvm

before_script:
- wget http://getcomposer.org/composer.phar
Expand Down
6 changes: 6 additions & 0 deletions tests/AutoReconnectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@
Inspect: docker exec -it arkdb-mysql mysql --user=root --password=123456
*/

// backward compatibility
if (!class_exists('\PHPUnit\Framework\TestCase') &&
class_exists('\PHPUnit_Framework_TestCase')) {
class_alias('\PHPUnit_Framework_TestCase', '\PHPUnit\Framework\TestCase');
}

class AutoReconnectTest extends PHPUnit_Framework_TestCase{
protected $db;
// Local test only
Expand Down
6 changes: 6 additions & 0 deletions tests/AutoSlaveTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
* @license MIT
*/

// backward compatibility
if (!class_exists('\PHPUnit\Framework\TestCase') &&
class_exists('\PHPUnit_Framework_TestCase')) {
class_alias('\PHPUnit_Framework_TestCase', '\PHPUnit\Framework\TestCase');
}

class AutoSlaveTest extends PHPUnit_Framework_TestCase{
protected $db;

Expand Down
6 changes: 6 additions & 0 deletions tests/DatabaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
* @license MIT
*/

// backward compatibility
if (!class_exists('\PHPUnit\Framework\TestCase') &&
class_exists('\PHPUnit_Framework_TestCase')) {
class_alias('\PHPUnit_Framework_TestCase', '\PHPUnit\Framework\TestCase');
}

class DatabaseTest extends PHPUnit_Framework_TestCase{
protected $db;

Expand Down

0 comments on commit b3075dc

Please sign in to comment.