Skip to content

Commit

Permalink
Impriving the default for expectExpection
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed May 9, 2010
1 parent bc9479e commit 1e01e21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake/tests/lib/cake_test_case.php
Expand Up @@ -466,7 +466,7 @@ protected function expectError($expected = false, $message = '') {
* @param string $message the text to display if the assertion is not correct
* @return void
*/
protected function expectException($name = null, $message = '') {
protected function expectException($name = 'Exception', $message = '') {
$this->setExpectedException($name, $message);
}

Expand Down

0 comments on commit 1e01e21

Please sign in to comment.