From 4f7846d20d68a5eccd2e14e7d28f5a6c369f643e Mon Sep 17 00:00:00 2001 From: Josh Sherman Date: Sun, 28 May 2017 17:27:13 -0500 Subject: [PATCH] Add polyfill for unit tests --- tests/GooglePlacesTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/GooglePlacesTest.php b/tests/GooglePlacesTest.php index 2d0b401..13dcdf8 100644 --- a/tests/GooglePlacesTest.php +++ b/tests/GooglePlacesTest.php @@ -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;