diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-05-31 01:35:10 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-05-31 01:35:10 +0200 |
commit | 9c2687ddc9ba7071f7c98c118203f96a412e3d1b (patch) | |
tree | eb5914ab23e704d17fde617841fedb7616ab1bdc /tests/extension/finder_test.php | |
parent | f4dcb69dae9964c7d6ca9d06828d773a63a3abed (diff) | |
parent | 91305a43af126bc404b9fa42572eb8b23009a209 (diff) | |
download | forums-9c2687ddc9ba7071f7c98c118203f96a412e3d1b.tar forums-9c2687ddc9ba7071f7c98c118203f96a412e3d1b.tar.gz forums-9c2687ddc9ba7071f7c98c118203f96a412e3d1b.tar.bz2 forums-9c2687ddc9ba7071f7c98c118203f96a412e3d1b.tar.xz forums-9c2687ddc9ba7071f7c98c118203f96a412e3d1b.zip |
Merge pull request #2494 from Nicofuma/ticket/12589
[ticket/12589] Search directly in $directory if it's an absolute sub-path
* Nicofuma/ticket/12589:
[ticket/12589] Add test searching in a non absolute directory
[ticket/12589] Fix tests
[ticket/12589] Search directly in $directory if it's an absolute sub-path
Diffstat (limited to 'tests/extension/finder_test.php')
-rw-r--r-- | tests/extension/finder_test.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/extension/finder_test.php b/tests/extension/finder_test.php index 4ef9411557..8cc5146b33 100644 --- a/tests/extension/finder_test.php +++ b/tests/extension/finder_test.php @@ -132,6 +132,22 @@ class phpbb_extension_finder_test extends phpbb_test_case ); } + public function test_non_absolute_directory_get_classes() + { + $classes = $this->finder + ->directory('type/') + ->get_classes(); + + sort($classes); + $this->assertEquals( + array( + '\vendor2\foo\sub\type\alternative', + '\vendor2\foo\type\alternative', + ), + $classes + ); + } + public function test_sub_directory_get_classes() { $classes = $this->finder |