mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Impriving the default for expectExpection
This commit is contained in:
parent
bc9479efcf
commit
1e01e21bf9
1 changed files with 1 additions and 1 deletions
|
@ -466,7 +466,7 @@ class CakeTestCase extends PHPUnit_Framework_TestCase {
|
||||||
* @param string $message the text to display if the assertion is not correct
|
* @param string $message the text to display if the assertion is not correct
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
protected function expectException($name = null, $message = '') {
|
protected function expectException($name = 'Exception', $message = '') {
|
||||||
$this->setExpectedException($name, $message);
|
$this->setExpectedException($name, $message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue