Skip to content

Commit b4dc688

Browse files
carusogabrielstevelacey
authored andcommitted
Use assertInstanceOf
1 parent 294a3dd commit b4dc688

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Types/ZendDateTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function testGetZendDate()
5858
{
5959
$entity = $this->em->find('DoctrineExtensions\Tests\Entities\ZendDate', 1);
6060

61-
$this->assertTrue($entity->date instanceof \Zend_Date);
61+
$this->assertInstanceOf('Zend_Date', $entity->date);
6262
$this->assertTrue($entity->date->equals(new \Zend_Date(array(
6363
'year' => 2012, 'month' => 11, 'day' => 10,
6464
'hour' => 9, 'minute' => 8, 'second' => 7
@@ -78,7 +78,7 @@ public function testSetZendDate()
7878

7979
$entity = $this->em->find('DoctrineExtensions\Tests\Entities\ZendDate', 2);
8080

81-
$this->assertTrue($entity->date instanceof \Zend_Date);
81+
$this->assertInstanceOf('Zend_Date', $entity->date);
8282
$this->assertTrue($entity->date->equals($zendDate));
8383
}
8484

0 commit comments

Comments
 (0)