function ClassLoaderTest::testPrefixes in X Autoload 7.5
Same name and namespace in other branches
- 7.3 tests/Drupal/xautoload/Tests/ClassLoaderTest.php \Drupal\xautoload\Tests\ClassLoaderTest::testPrefixes()
- 7.4 tests/lib/ClassLoaderTest.php \Drupal\xautoload\Tests\ClassLoaderTest::testPrefixes()
Test PEAR-like prefixes.
File
- tests/
src/ ClassLoaderTest.php, line 70
Class
Namespace
Drupal\xautoload\TestsCode
function testPrefixes() {
// Prepare the class finder.
$finder = new ClassFinder();
$finder
->registerPrefixDeep('ex_ample', 'test://base/lib');
$finder
->registerPrefixRoot('ex_ample', 'test://base/vendor');
$this
->assertCandidateOrder($finder, 'ex_ample_Sub%_Foo', array(
'test://base/lib/Sub%/Foo.php',
'test://base/vendor/ex/ample/Sub%/Foo.php',
));
}