Skip to content

Commit

Permalink
Adding test covearge for error conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam-Burns committed Dec 3, 2015
1 parent 85d4177 commit a22e037
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php
namespace SamBurns\ConfigFileParser\Test;

use SamBurns\ConfigFileParser\ConfigFileParser;
use PHPUnit_Framework_TestCase as TestCase;

class UnparsableFilesTest extends TestCase
{
/**
* @expectedException \SamBurns\ConfigFileParser\Exception\FileFormatNotParsable
*/
public function testGetExceptionForUnreadableFiles()
{
$configFileParser = new ConfigFileParser();
$configFileParser->parseConfigFile('file.bad-extension');
}
}

0 comments on commit a22e037

Please sign in to comment.