Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/PHPUnit/Controller/AbstractControllerTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -488,15 +488,15 @@ public function assertNotResponseStatusCode($code)
/**
* Assert the application exception and message
*
* @param $type application exception type
* @param $message application exception message
* @param string $type application exception type
* @param string|null $message application exception message
*/
public function assertApplicationException($type, $message = null)
{
$exception = $this->getApplication()->getMvcEvent()->getParam('exception');
if (! $exception) {
throw new ExpectationFailedException($this->createFailureMessage(
'Failed asserting application exception, exception not exist'
'Failed asserting application exception, param "exception" does not exist'
));
}
if (true === $this->traceError) {
Expand Down