Renamed languages to locales in the code

This commit is contained in:
Gregory Oschwald
2013-10-17 12:58:21 -07:00
parent b8188bc558
commit 234dcaff7c
13 changed files with 46 additions and 39 deletions
+2 -2
View File
@@ -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',
+2 -2
View File
@@ -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
);