Skip to content

Commit

Permalink
Use assertInstanceOf
Browse files Browse the repository at this point in the history
  • Loading branch information
carusogabriel authored and stevelacey committed Jan 27, 2018
1 parent 294a3dd commit b4dc688
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Types/ZendDateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function testGetZendDate()
{
$entity = $this->em->find('DoctrineExtensions\Tests\Entities\ZendDate', 1);

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

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

$this->assertTrue($entity->date instanceof \Zend_Date);
$this->assertInstanceOf('Zend_Date', $entity->date);
$this->assertTrue($entity->date->equals($zendDate));
}

Expand Down

0 comments on commit b4dc688

Please sign in to comment.