Add polyfill for unit tests

This commit is contained in:
Josh Sherman 2017-05-28 17:27:13 -05:00
parent e7a14879ae
commit 4f7846d20d
No known key found for this signature in database
GPG key ID: 55B058A80530EF22

View file

@ -3,6 +3,10 @@
require_once '../src/GooglePlaces.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
{
private $places;