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/DelegateTest.php | |
parent | 55df8dac44f54a305e8bd7e50ef63f76725d2333 (diff) |
Ported / fixed most old tests
Diffstat (limited to 'tests/unit/Data/SqlMap/DelegateTest.php')
-rw-r--r-- | tests/unit/Data/SqlMap/DelegateTest.php | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/unit/Data/SqlMap/DelegateTest.php b/tests/unit/Data/SqlMap/DelegateTest.php index 5bfbe5ce..10442bb0 100644 --- a/tests/unit/Data/SqlMap/DelegateTest.php +++ b/tests/unit/Data/SqlMap/DelegateTest.php @@ -17,13 +17,13 @@ class DelegateTest extends BaseCase $list = $this->sqlmap->queryWithRowDelegate( "GetAllAccountsViaResultMap", array($this, 'listHandler')); - $this->assertIdentical(5, count($list)); + $this->assertSame(5, count($list)); $this->assertAccount1($list[0]); - $this->assertIdentical(1, $list[0]->getID()); - $this->assertIdentical(2, $list[1]->getID()); - $this->assertIdentical(3, $list[2]->getID()); - $this->assertIdentical(4, $list[3]->getID()); - $this->assertIdentical(5, $list[4]->getID()); + $this->assertSame(1, $list[0]->getID()); + $this->assertSame(2, $list[1]->getID()); + $this->assertSame(3, $list[2]->getID()); + $this->assertSame(4, $list[3]->getID()); + $this->assertSame(5, $list[4]->getID()); } /** @@ -34,14 +34,14 @@ class DelegateTest extends BaseCase $map = $this->sqlmap->QueryForMapWithRowDelegate( "GetAllAccountsViaResultClass", array($this, 'mapHandler'), null, "FirstName"); - $this->assertIdentical(5, count($map)); + $this->assertSame(5, count($map)); $this->assertAccount1($map["Joe"]); - $this->assertIdentical(1, $map["Joe"]->getID()); - $this->assertIdentical(2, $map["Averel"]->getID()); - $this->assertIdentical(3, $map["William"]->getID()); - $this->assertIdentical(4, $map["Jack"]->getID()); - $this->assertIdentical(5, $map["Gilles"]->getID()); + $this->assertSame(1, $map["Joe"]->getID()); + $this->assertSame(2, $map["Averel"]->getID()); + $this->assertSame(3, $map["William"]->getID()); + $this->assertSame(4, $map["Jack"]->getID()); + $this->assertSame(5, $map["Gilles"]->getID()); } public function listHandler($sender, $param) |