Renamed languages to locales in the code
This commit is contained in:
@@ -6,7 +6,7 @@ use GeoIp2\Database\Reader;
|
||||
|
||||
class ReaderTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testDefaultLanguage()
|
||||
public function testDefaultLocale()
|
||||
{
|
||||
$reader = new Reader('maxmind-db/test-data/GeoIP2-City-Test.mmdb');
|
||||
// Needed for PHP 5.3
|
||||
@@ -20,7 +20,7 @@ class ReaderTest extends \PHPUnit_Framework_TestCase
|
||||
$reader->close();
|
||||
}
|
||||
|
||||
public function testLanguageList()
|
||||
public function testLocaleList()
|
||||
{
|
||||
$reader = new Reader(
|
||||
'maxmind-db/test-data/GeoIP2-City-Test.mmdb',
|
||||
|
||||
@@ -450,7 +450,7 @@ class ClientTest extends \PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
|
||||
private function client($response, $languages = array('en'))
|
||||
private function client($response, $locales = array('en'))
|
||||
{
|
||||
$plugin = new MockPlugin();
|
||||
$plugin->addResponse($response);
|
||||
@@ -460,7 +460,7 @@ class ClientTest extends \PHPUnit_Framework_TestCase
|
||||
$client = new Client(
|
||||
42,
|
||||
'abcdef123456',
|
||||
$languages,
|
||||
$locales,
|
||||
'geoip.maxmind.com',
|
||||
$guzzleClient
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user