From 9e6449290f0faada985189dde1832349905b11ab Mon Sep 17 00:00:00 2001 From: Dave Rolsky Date: Mon, 27 Oct 2014 17:21:10 -0500 Subject: [PATCH] Use assertSame instead of assertEquals to test boolean attributes --- tests/GeoIp2/Test/Database/ReaderTest.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/GeoIp2/Test/Database/ReaderTest.php b/tests/GeoIp2/Test/Database/ReaderTest.php index 68a4732..e87b4a6 100644 --- a/tests/GeoIp2/Test/Database/ReaderTest.php +++ b/tests/GeoIp2/Test/Database/ReaderTest.php @@ -94,11 +94,11 @@ class ReaderTest extends \PHPUnit_Framework_TestCase $ipAddress = '1.2.0.1'; $record = $reader->anonymousIp($ipAddress); - $this->assertEquals(1, $record->isAnonymous); - $this->assertEquals(1, $record->isAnonymousVpn); - $this->assertEquals(0, $record->isHostingProvider); - $this->assertEquals(0, $record->isPublicProxy); - $this->assertEquals(0, $record->isTorExitNode); + $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->assertEquals($ipAddress, $record->ipAddress); $reader->close(); }