Skip to content
Browse files

Adding new unit tests for ClassMapLoader.

  • Loading branch information...
1 parent 23af497 commit 110a8df7fb3f0a966d441d4e373c5d1225668dc4 @zyxist zyxist committed
Showing with 8 additions and 0 deletions.
  1. +8 −0 tests/TestSuite/ClassMapLoaderTest.php
View
8 tests/TestSuite/ClassMapLoaderTest.php
@@ -20,6 +20,14 @@ public function testLoaderInitialization()
$loader = new ClassMapLoader('./data/', './data/classMap.txt');
$this->assertEquals('./data/', $loader->getDefaultPath());
} // end testLoaderInitialization();
+
+ /**
+ * @expectedException RuntimeException
+ */
+ public function testConstructorThrowsExceptionIfFileDoesNotExist()
+ {
+ $loader = new ClassMapLoader('./data/', './data/not_exist.txt');
+ } // end testLoaderInitialization();
/**
* @depends testLoaderInitialization

0 comments on commit 110a8df

Please sign in to comment.
Something went wrong with that request. Please try again.