aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/extension/finder_test.php16
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/extension/finder_test.php b/tests/extension/finder_test.php
index 9031e1cb47..2b025433b7 100644
--- a/tests/extension/finder_test.php
+++ b/tests/extension/finder_test.php
@@ -55,7 +55,7 @@ class phpbb_extension_finder_test extends phpbb_test_case
);
}
- public function test_prefix_get_directories()
+ public function test_get_directories()
{
$dirs = $this->finder
->directory('/type')
@@ -67,6 +67,20 @@ class phpbb_extension_finder_test extends phpbb_test_case
), $dirs);
}
+ public function test_prefix_get_directories()
+ {
+ $dirs = $this->finder
+ ->prefix('t')
+ ->get_directories();
+
+ sort($dirs);
+ $this->assertEquals(array(
+ dirname(__FILE__) . '/ext/foo/sub/type/',
+ dirname(__FILE__) . '/ext/foo/type/',
+ dirname(__FILE__) . '/ext/foo/typewrong/',
+ ), $dirs);
+ }
+
public function test_prefix_get_classes()
{
$classes = $this->finder