diff --git a/tests/ManagerTestCase.php b/tests/ManagerTestCase.php index 4c14e68b1..886ce04a4 100644 --- a/tests/ManagerTestCase.php +++ b/tests/ManagerTestCase.php @@ -44,7 +44,7 @@ class Doctrine_Manager_TestCase extends Doctrine_UnitTestCase { $this->assertTrue(is_integer(count($this->manager))); } public function testGetCurrentConnection() { - $this->assertEqual($this->manager->getCurrentConnection(), $this->connection); + $this->assertTrue($this->manager->getCurrentConnection() === $this->connection); } public function testGetConnections() { $this->assertTrue(is_integer(count($this->manager->getConnections()))); diff --git a/tests/RelationTestCase.php b/tests/RelationTestCase.php index a9a6504f7..26b331a28 100644 --- a/tests/RelationTestCase.php +++ b/tests/RelationTestCase.php @@ -114,7 +114,5 @@ class Doctrine_Relation_TestCase extends Doctrine_UnitTestCase { $this->assertTrue($user->getTable()->getRelation('Phonenumber') instanceof Doctrine_Relation_ForeignKey); $this->manager->setAttribute(Doctrine::ATTR_CREATE_TABLES, true); - } - - + } } diff --git a/tests/TreeStructureTestCase.php b/tests/TreeStructureTestCase.php index aae066e09..b1c2fdd45 100644 --- a/tests/TreeStructureTestCase.php +++ b/tests/TreeStructureTestCase.php @@ -83,7 +83,7 @@ class Doctrine_TreeStructure_TestCase extends Doctrine_UnitTestCase $this->assertTrue(count($o1->get('Children')) == 2); $this->assertTrue(isset($o2->Parent)); - $this->assertTrue($o2->Parent == $o1); + $this->assertTrue($o2->Parent === $o1); $this->assertTrue(count($o4->Children) == 0); $this->assertFalse(isset($o4->Parent)); diff --git a/tests/ViewTestCase.php b/tests/ViewTestCase.php index b8f17e201..e59e9c4bf 100644 --- a/tests/ViewTestCase.php +++ b/tests/ViewTestCase.php @@ -38,8 +38,9 @@ class Doctrine_View_TestCase extends Doctrine_UnitTestCase { $view = new Doctrine_View($query, 'MyView'); $this->assertEqual($view->getName(), 'MyView'); - $this->assertEqual($view->getQuery(), $query); - $this->assertEqual($view, $query->getView()); + + $this->assertTrue($view->getQuery() === $query); + $this->assertTrue($view === $query->getView()); $this->assertTrue($view->getConnection() instanceof Doctrine_Connection); $success = true;