Skip to content

Commit

Permalink
Add PHPUnit 6 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
sop committed Feb 23, 2017
1 parent 073f1d8 commit 6869041
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

define("TEST_ASSETS_DIR", __DIR__ . "/assets");
require dirname(__DIR__) . "/vendor/autoload.php";

// set default timezone
if (empty(ini_get("date.timezone"))) {
ini_set("date.timezone", "UTC");
}
// backwards compatibility on PHPUnit 6
if (!class_exists("PHPUnit_Framework_TestCase")) {
class_alias("PHPUnit\Framework\TestCase", "PHPUnit_Framework_TestCase");
}

0 comments on commit 6869041

Please sign in to comment.