Impriving the default for expectExpection

This commit is contained in:
José Lorenzo Rodríguez 2010-05-09 18:48:39 -04:30
parent bc9479efcf
commit 1e01e21bf9

View file

@ -466,7 +466,7 @@ class CakeTestCase extends PHPUnit_Framework_TestCase {
* @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);
}