Skip to content
Permalink
Browse files

Adding meta files (#601)

* Adding meta files

* Minor fix
  • Loading branch information...
Nyholm committed Apr 28, 2017
1 parent 24fc43a commit 838dd70a63e18fe67e5b14a3952e53b81b059ec6
Showing with 32 additions and 1 deletion.
  1. +9 −0 .editorconfig
  2. +13 −0 .php_cs
  3. +9 −0 .styleci.yml
  4. +1 −1 tests/Provider/GeoIP2Test.php
@@ -0,0 +1,9 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
13 .php_cs
@@ -0,0 +1,13 @@
<?php
/*
* In order to make it work, fabpot/php-cs-fixer and sllh/php-cs-fixer-styleci-bridge must be installed globally
* with composer.
*
* @link https://github.com/Soullivaneuh/php-cs-fixer-styleci-bridge
* @link https://github.com/FriendsOfPHP/PHP-CS-Fixer
*/
use SLLH\StyleCIBridge\ConfigBridge;
return ConfigBridge::create();
@@ -0,0 +1,9 @@
preset: symfony

finder:
path:
- "src"
- "tests"

enabled:
- short_array_syntax
@@ -214,7 +214,7 @@ public function testGeoIp2Encoding()
$reader = new Reader(__DIR__ . '/fixtures/GeoLite2-City.mmdb');
$adapter = new GeoIP2Adapter($reader);
$provider = new GeoIP2($adapter);
$locality = $provider->geocode('79.114.34.148')->first()->getLocality();
$locality = $provider->geocodeQuery(GeocodeQuery::create('79.114.34.148'))->first()->getLocality();
$this->assertEquals('Timișoara', $locality);
}

0 comments on commit 838dd70

Please sign in to comment.
You can’t perform that action at this time.