Laravel version update

Laravel version update
This commit is contained in:
Manish Verma
2018-08-06 18:48:58 +05:30
parent d143048413
commit 126fbb0255
13678 changed files with 1031482 additions and 778530 deletions

View File

@@ -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());
}
/**

View File

@@ -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()

View File

@@ -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;