Getting hacky

This commit is contained in:
Josh Sherman 2017-05-28 18:43:04 -05:00
parent 33b799f576
commit b66d342eb6
No known key found for this signature in database
GPG key ID: 55B058A80530EF22

View file

@ -19,7 +19,11 @@ class GooglePlacesTest extends PHPUnit_Framework_TestCase
private function clientSetUp($next = false)
{
$client = $this->createMock('GooglePlacesClient', array('get'));
if (version_compare(PHPUnit_Runner_Version::id(), '5.4', '<=')) {
$client = $this->getMock('GooglePlacesClient', array('get'));
} else {
$client = $this->createMock('GooglePlacesClient');
}
$client
->expects($this->once())