mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Updating CakeLog tests to use @expectedException annotation.
This commit is contained in:
parent
e7ff0bdf66
commit
933378223b
1 changed files with 2 additions and 2 deletions
|
@ -69,20 +69,20 @@ class CakeLogTest extends CakeTestCase {
|
|||
/**
|
||||
* test all the errors from failed logger imports
|
||||
*
|
||||
* @expectedException Exception
|
||||
* @return void
|
||||
*/
|
||||
function testImportingLoggerFailure() {
|
||||
$this->expectException();
|
||||
CakeLog::config('fail', array());
|
||||
}
|
||||
|
||||
/**
|
||||
* test that loggers have to implement the correct interface.
|
||||
*
|
||||
* @expectedException Exception
|
||||
* @return void
|
||||
*/
|
||||
function testNotImplementingInterface() {
|
||||
$this->expectException();
|
||||
CakeLog::config('fail', array('engine' => 'stdClass'));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue