File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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 ()
Original file line number Diff line number Diff line change 33namespace Torann \GeoIP \Tests ;
44
55use 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
You can’t perform that action at this time.
0 commit comments