Updating CakeLog tests to use @expectedException annotation.

This commit is contained in:
Mark Story 2010-05-08 16:17:20 -04:00
parent e7ff0bdf66
commit 933378223b

View file

@ -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'));
}