Skip to content

Commit

Permalink
Adding an extra unit test for Configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
zyxist committed Jul 9, 2011
1 parent 7f08f8e commit a6e4b55
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/TestSuite/Toolset/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,14 @@ public function testLoadNoHeadings()
$this->assertEquals(null, $configuration->getFileFooter());
} // end testLoadNoHeadings();

/**
* @expectedException Opl\Autoloader\Exception\FileNotFoundException
*/
public function testExceptionIfFileDoesNotExist()
{
$configuration = new Configuration('./data/configs/doesNotExist.xml');
} // end testExceptionIfFileDoesNotExist();

/**
* @expectedException Opl\Autoloader\Exception\FileFormatException
*/
Expand Down

0 comments on commit a6e4b55

Please sign in to comment.