Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

test updates

  • Loading branch information...
commit 58e8eb13086e727929d4896109dfca6290b2c43c 1 parent ffd2e8d
@theseer authored
Showing with 12 additions and 1 deletion.
  1. +1 −1  phpunit.xml.dist
  2. +11 −0 tests/classfinder.test.php
View
2  phpunit.xml.dist
@@ -14,7 +14,7 @@
<directory suffix=".php">src</directory>
<exclude>
<directory>src/templates</directory>
- <file>src/autoloadbuildercli.php</file>
+ <file>src/cli.php</file>
</exclude>
</whitelist>
</filter>
View
11 tests/classfinder.test.php
@@ -60,6 +60,17 @@ public function testOneClass() {
$this->assertArrayHasKey('demo', $finder->getClasses());
}
+ /**
+ *
+ * @expectedException \TheSeer\Tools\ClassFinderException
+ * @expectedExceptionCode \TheSeer\Tools\ClassFinderException::ClassRedeclaration
+ */
+ public function testRedeclaringThrowsException() {
+ $finder = new \TheSeer\Tools\ClassFinder;
+ $finder->parseFile(__DIR__.'/_data/classfinder/class.php');
+ $finder->parseFile(__DIR__.'/_data/classfinder/class.php');
+ }
+
public function testFullPathToClass() {
$finder = new \TheSeer\Tools\ClassFinder;
$rc = $finder->parseFile(__DIR__.'/_data/classfinder/class.php');
Please sign in to comment.
Something went wrong with that request. Please try again.