Skip to content

Commit

Permalink
utilize phpunit test docblock conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
ionas committed Jan 1, 2016
1 parent e97323a commit b62aa83
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions tests/TestCase/Core/ConfigureTest.php
Expand Up @@ -84,17 +84,13 @@ public function testReadOrFail()
/**
* testReadOrFail method
*
* @expectedException RuntimeException
* @expectedExceptionMessage Expected "This.Key.Does.Not.exist" configuration
* @return void
*/
public function testReadOrFailThrowingException()
{
try {
$void = Configure::readOrFail('This.Key.Does.Not.exist');
$this->fail('Expected exception to be thrown.');
} catch (\Exception $e) {
$this->assertTrue($e instanceof \RuntimeException);
$this->assertEquals('Expected "This.Key.Does.Not.exist" configuration.', $e->getMessage());
}
Configure::readOrFail('This.Key.Does.Not.exist');
}

/**
Expand Down

0 comments on commit b62aa83

Please sign in to comment.