diff --git a/phpunit.xml b/phpunit.xml
index d1a9350..0f84fe4 100644
--- a/phpunit.xml
+++ b/phpunit.xml
@@ -20,5 +20,9 @@
test/app1/src/ClassmapTest.php
test/unit/Classmap
+
+ test/app1/src/FilesTest.php
+ test/unit/Files
+
\ No newline at end of file
diff --git a/test/app1/composer.json b/test/app1/composer.json
index 605bb58..16e0569 100644
--- a/test/app1/composer.json
+++ b/test/app1/composer.json
@@ -18,6 +18,7 @@
"TestApp1\\": "src/",
"TestApp1\\Multi\\": [ "multi/Jik/", "multi/Jiu/" ]
},
- "classmap": ["classmap/woc/", "classmap/wop/", "classmap/woj/" ]
+ "classmap": ["classmap/woc/", "classmap/wop/", "classmap/woj/" ],
+ "files": ["files/files1.php", "files/files2.php", "files/more_files/Boom.php" ]
}
}
diff --git a/test/app1/files/RedHerring.php b/test/app1/files/RedHerring.php
new file mode 100644
index 0000000..66a62c1
--- /dev/null
+++ b/test/app1/files/RedHerring.php
@@ -0,0 +1,3 @@
+assertFalse(true, 'An exception occurred: ' . $e->getMessage());
+ $classes = array();
+ }
+
+ $this->assertEquals($expected, $classes, $message);
+ }
+
+ public function classFinderDataProvider()
+ {
+ return array(
+ array(
+ 'TestApp1\FilesClasses',
+ array(
+ 'TestApp1\FilesClasses\Bam',
+ 'TestApp1\FilesClasses\Wam',
+ 'TestApp1\FilesClasses\Fam',
+ 'TestApp1\FilesClasses\Cam',
+ 'TestApp1\FilesClasses\Lam',
+ ),
+ 'ClassFinder should be able to find 1st party classes included from `files` listed in composer.json.'
+ )
+ );
+ }
+}
\ No newline at end of file