Skip to content
Permalink
Browse files

Updating CakeLog tests to use @expectedException annotation.

  • Loading branch information...
markstory committed May 8, 2010
1 parent e7ff0bd commit 933378223b0731530298ae5dceab02a0a8220a5e
Showing with 2 additions and 2 deletions.
  1. +2 −2 cake/tests/cases/libs/cake_log.test.php
@@ -69,20 +69,20 @@ function testImportingLoggers() {
/**
* 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'));
}

0 comments on commit 9333782

Please sign in to comment.
You can’t perform that action at this time.