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/InheritanceTest.php | |
parent | 55df8dac44f54a305e8bd7e50ef63f76725d2333 (diff) |
Ported / fixed most old tests
Diffstat (limited to 'tests/unit/Data/SqlMap/InheritanceTest.php')
-rw-r--r-- | tests/unit/Data/SqlMap/InheritanceTest.php | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/unit/Data/SqlMap/InheritanceTest.php b/tests/unit/Data/SqlMap/InheritanceTest.php index 9c8a805e..d8ad4c88 100644 --- a/tests/unit/Data/SqlMap/InheritanceTest.php +++ b/tests/unit/Data/SqlMap/InheritanceTest.php @@ -20,7 +20,7 @@ class InheritanceTest extends BaseCase { $list = $this->sqlmap->queryForList("GetAllDocument"); - $this->assertEqual(6, count($list)); + $this->assertEquals(6, count($list)); $book = $list[0]; $this->assertBook($book, 1, "The World of Null-A", 55); @@ -45,7 +45,7 @@ class InheritanceTest extends BaseCase { $list = $this->sqlmap->queryForList("GetTypedCollection"); - $this->assertEqual(6, $list->getCount()); + $this->assertEquals(6, $list->getCount()); $book = $list[0]; $this->assertBook($book, 1, "The World of Null-A", 55); @@ -75,7 +75,7 @@ class InheritanceTest extends BaseCase $list = $this->sqlmap->queryForList("GetAllDocumentWithCustomTypeHandler"); - $this->assertEqual(6, count($list)); + $this->assertEquals(6, count($list)); $book = $list[0]; $this->assertBook($book, 1, "The World of Null-A", 55); @@ -97,22 +97,22 @@ class InheritanceTest extends BaseCase function AssertDocument(Document $document, $id, $title) { - $this->assertEqual($id, $document->getID()); - $this->assertEqual($title, $document->getTitle()); + $this->assertEquals($id, $document->getID()); + $this->assertEquals($title, $document->getTitle()); } function AssertBook(Book $book, $id, $title, $pageNumber) { - $this->assertEqual($id, $book->getId()); - $this->assertEqual($title, $book->getTitle()); - $this->assertEqual($pageNumber, (int)$book->getPageNumber()); + $this->assertEquals($id, $book->getId()); + $this->assertEquals($title, $book->getTitle()); + $this->assertEquals($pageNumber, (int)$book->getPageNumber()); } function AssertNewspaper(Newspaper $news, $id, $title, $city) { - $this->assertEqual($id, $news->getId()); - $this->assertEqual($title, $news->getTitle()); - $this->assertEqual($city, $news->getCity()); + $this->assertEquals($id, $news->getId()); + $this->assertEquals($title, $news->getTitle()); + $this->assertEquals($city, $news->getCity()); } } |