Skip to content

Commit

Permalink
Add polyfill for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtronic committed May 28, 2017
1 parent e7a1487 commit 4f7846d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/GooglePlacesTest.php
Expand Up @@ -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;
Expand Down

0 comments on commit 4f7846d

Please sign in to comment.