Add polyfill for unit tests
This commit is contained in:
parent
e7a14879ae
commit
4f7846d20d
1 changed files with 4 additions and 0 deletions
|
@ -3,6 +3,10 @@
|
||||||
require_once '../src/GooglePlaces.php';
|
require_once '../src/GooglePlaces.php';
|
||||||
require_once '../src/GooglePlacesClient.php';
|
require_once '../src/GooglePlacesClient.php';
|
||||||
|
|
||||||
|
if (!class_exists('\PHPUnit_Framework_TestCase') && class_exists('\PHPUnit\Framework\TestCase')) {
|
||||||
|
class_alias('\PHPUnit\Framework\TestCase', '\PHPUnit_Framework_TestCase');
|
||||||
|
}
|
||||||
|
|
||||||
class GooglePlacesTest extends PHPUnit_Framework_TestCase
|
class GooglePlacesTest extends PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
private $places;
|
private $places;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue