From a26d7525c471a353b2005b61a3a87cdad34b0aaa Mon Sep 17 00:00:00 2001 From: Gregory Oschwald Date: Thu, 9 May 2013 08:11:34 -0700 Subject: [PATCH] Another PHP 5.3 request --- tests/GeoIP2/Test/Webservice/ClientTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/GeoIP2/Test/Webservice/ClientTest.php b/tests/GeoIP2/Test/Webservice/ClientTest.php index a8ecf29..b571e7d 100644 --- a/tests/GeoIP2/Test/Webservice/ClientTest.php +++ b/tests/GeoIP2/Test/Webservice/ClientTest.php @@ -277,8 +277,9 @@ class ClientTest extends \PHPUnit_Framework_TestCase ); $client->country('1.2.3.4'); - $request = $plugin->getReceivedRequests()[0]; - + $all_requests = $plugin->getReceivedRequests(); + $request = $all_requests[0]; + $this->assertEquals( 'https://geoip.maxmind.com/geoip/v2.0/country/1.2.3.4', $request->getUrl(),