Skip to content

Commit

Permalink
Updating CakeLog tests to use @ExpectedException annotation.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed May 8, 2010
1 parent e7ff0bd commit 9333782
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/tests/cases/libs/cake_log.test.php
Expand Up @@ -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'));
}

Expand Down

0 comments on commit 9333782

Please sign in to comment.