diff options
author | Fabio Bas <ctrlaltca@gmail.com> | 2016-03-29 09:24:08 +0200 |
---|---|---|
committer | Fabio Bas <ctrlaltca@gmail.com> | 2016-03-29 09:24:08 +0200 |
commit | 70e305a918fcf193009831d4e89aa8c386df3dc4 (patch) | |
tree | 8cc49f253f29636ddd623aa2c2b98835300604f0 /tests/unit/Data/SqlMap/TestQueryForMap.php | |
parent | 55df8dac44f54a305e8bd7e50ef63f76725d2333 (diff) |
Ported / fixed most old tests
Diffstat (limited to 'tests/unit/Data/SqlMap/TestQueryForMap.php')
-rw-r--r-- | tests/unit/Data/SqlMap/TestQueryForMap.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/unit/Data/SqlMap/TestQueryForMap.php b/tests/unit/Data/SqlMap/TestQueryForMap.php index 09810489..f50d0c76 100644 --- a/tests/unit/Data/SqlMap/TestQueryForMap.php +++ b/tests/unit/Data/SqlMap/TestQueryForMap.php @@ -18,11 +18,11 @@ class TestQueryForMap extends BaseCase function testExecuteQueryForMap() { $map = $this->sqlmap->QueryForMap("GetAllAccountsViaResultClass", null, "FirstName",null,0,2); - $this->assertIdentical(2, count($map)); + $this->assertSame(2, count($map)); $this->assertAccount1($map["Joe"]); - $this->assertIdentical(1, $map["Joe"]->getID()); - $this->assertIdentical(2, $map["Averel"]->getID()); + $this->assertSame(1, $map["Joe"]->getID()); + $this->assertSame(2, $map["Averel"]->getID()); } /** @@ -34,11 +34,11 @@ class TestQueryForMap extends BaseCase $map = $this->sqlmap->QueryForMap("GetAllAccountsViaResultClass", null, "FirstName", "EmailAddress",1,3); - $this->assertIdentical(3, count($map)); + $this->assertSame(3, count($map)); - $this->assertIdentical("Averel.Dalton@somewhere.com", $map["Averel"]); + $this->assertSame("Averel.Dalton@somewhere.com", $map["Averel"]); $this->assertNull($map["William"]); - $this->assertIdentical("Jack.Dalton@somewhere.com", $map["Jack"]); + $this->assertSame("Jack.Dalton@somewhere.com", $map["Jack"]); } } |