Skip to content

Commit ea74a0a

Browse files
authored
Merge pull request #104 from rjp2525/fix-tests
Fix Tests
2 parents 865be39 + ef814a5 commit ea74a0a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/Services/MaxMindDatabaseTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function shouldReturnInvalidLocation()
3939

4040
try {
4141
$location = $service->locate('1.1.1.1');
42-
$this->assertEquals($location->default, 'Poop'); // This should never get a chance
42+
$this->assertEquals($location->default, false);
4343
}
4444
catch (\GeoIp2\Exception\AddressNotFoundException $e) {
4545
$this->assertEquals($e->getMessage(), 'The address 1.1.1.1 is not in the database.');
@@ -55,7 +55,7 @@ public function shouldUpdateLocalDatabase()
5555

5656
$this->assertEquals($service->update(), "Database file ({$config['database_path']}) updated.");
5757

58-
unlink($config['database_path']);
58+
@unlink($config['database_path']);
5959
}
6060

6161
protected function getService()

tests/TestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
namespace Torann\GeoIP\Tests;
44

55
use Mockery;
6-
use PHPUnit_Framework_TestCase;
6+
use PHPUnit\Framework\TestCase as PHPUnitTestCase;
77

8-
class TestCase extends PHPUnit_Framework_TestCase
8+
class TestCase extends PHPUnitTestCase
99
{
1010
public static $functions;
1111

0 commit comments

Comments
 (0)