Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
[#3543] Fix failing test
Browse files Browse the repository at this point in the history
- A test was calling run()->getBody(); modified to call run() prior, and then
  getResponse()->getBody().
  • Loading branch information
weierophinney committed Jan 25, 2013
1 parent 2ca646a commit edfae48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/ZendTest/Mvc/ApplicationTest.php
Expand Up @@ -368,7 +368,8 @@ public function testFinishEventIsTriggeredAfterDispatching()
$this->application->getEventManager()->attach(MvcEvent::EVENT_FINISH, function ($e) {
return $e->getResponse()->setContent($e->getResponse()->getBody() . 'foobar');
});
$this->assertContains('foobar', $this->application->run()->getBody(), 'The "finish" event was not triggered ("foobar" not in response)');
$this->application->run();
$this->assertContains('foobar', $this->application->getResponse()->getBody(), 'The "finish" event was not triggered ("foobar" not in response)');
}

/**
Expand Down

0 comments on commit edfae48

Please sign in to comment.