Skip to content

Commit

Permalink
Add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
bakura10 committed Apr 5, 2014
1 parent 0def194 commit 45a8ca9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/ZfrRestTest/Mvc/HttpExceptionListenerTest.php
Expand Up @@ -95,6 +95,7 @@ public function testPopulateResponse()
$this->assertInstanceOf('Zend\Http\Response', $this->event->getResponse());
$this->assertInstanceOf('Zend\Http\Response', $this->event->getResult());
$this->assertEquals($expectedContent, json_decode($this->event->getResponse()->getContent(), true));
$this->assertTrue($this->event->propagationIsStopped());
}

public function testCanCreateFromCustomException()
Expand All @@ -109,5 +110,6 @@ public function testCanCreateFromCustomException()

$this->assertInstanceOf('Zend\Http\Response', $this->event->getResponse());
$this->assertEquals('An error', $this->event->getResponse()->getReasonPhrase());
$this->assertTrue($this->event->propagationIsStopped());
}
}

0 comments on commit 45a8ca9

Please sign in to comment.