Laravel version update
Laravel version update
This commit is contained in:
4
vendor/torann/geoip/tests/GeoIPTest.php
vendored
4
vendor/torann/geoip/tests/GeoIPTest.php
vendored
@@ -29,9 +29,7 @@ class GeoIPTest extends TestCase
|
||||
$config = $this->getConfig()['services']['maxmind_database'];
|
||||
unset($config['class']);
|
||||
|
||||
self::$functions->shouldReceive('app')->with('Torann\GeoIP\Services\MaxMindDatabase', [$config])->andReturn(true);
|
||||
|
||||
$this->assertEquals($geo_ip->getService(), true);
|
||||
$this->assertInstanceOf(\Torann\GeoIP\Contracts\ServiceInterface::class, $geo_ip->getService());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -39,7 +39,7 @@ class MaxMindDatabaseTest extends TestCase
|
||||
|
||||
try {
|
||||
$location = $service->locate('1.1.1.1');
|
||||
$this->assertEquals($location->default, 'Poop'); // This should never get a chance
|
||||
$this->assertEquals($location->default, false);
|
||||
}
|
||||
catch (\GeoIp2\Exception\AddressNotFoundException $e) {
|
||||
$this->assertEquals($e->getMessage(), 'The address 1.1.1.1 is not in the database.');
|
||||
@@ -55,7 +55,7 @@ class MaxMindDatabaseTest extends TestCase
|
||||
|
||||
$this->assertEquals($service->update(), "Database file ({$config['database_path']}) updated.");
|
||||
|
||||
unlink($config['database_path']);
|
||||
@unlink($config['database_path']);
|
||||
}
|
||||
|
||||
protected function getService()
|
||||
|
||||
4
vendor/torann/geoip/tests/TestCase.php
vendored
4
vendor/torann/geoip/tests/TestCase.php
vendored
@@ -3,9 +3,9 @@
|
||||
namespace Torann\GeoIP\Tests;
|
||||
|
||||
use Mockery;
|
||||
use PHPUnit_Framework_TestCase;
|
||||
use PHPUnit\Framework\TestCase as PHPUnitTestCase;
|
||||
|
||||
class TestCase extends PHPUnit_Framework_TestCase
|
||||
class TestCase extends PHPUnitTestCase
|
||||
{
|
||||
public static $functions;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user