Return false instead of null for boolean attributes

This commit is contained in:
Dave Rolsky
2014-10-28 10:27:18 -05:00
parent caf91dd247
commit c44053c276
5 changed files with 32 additions and 6 deletions
+3 -3
View File
@@ -96,9 +96,9 @@ class ReaderTest extends \PHPUnit_Framework_TestCase
$record = $reader->anonymousIp($ipAddress);
$this->assertSame(true, $record->isAnonymous);
$this->assertSame(true, $record->isAnonymousVpn);
$this->assertSame(null, $record->isHostingProvider);
$this->assertSame(null, $record->isPublicProxy);
$this->assertSame(null, $record->isTorExitNode);
$this->assertSame(false, $record->isHostingProvider);
$this->assertSame(false, $record->isPublicProxy);
$this->assertSame(false, $record->isTorExitNode);
$this->assertEquals($ipAddress, $record->ipAddress);
$reader->close();
}