function ClassLoaderTest::testPsr4 in X Autoload 7.4
Same name and namespace in other branches
- 7.5 tests/src/ClassLoaderTest.php \Drupal\xautoload\Tests\ClassLoaderTest::testPsr4()
- 7.3 tests/Drupal/xautoload/Tests/ClassLoaderTest.php \Drupal\xautoload\Tests\ClassLoaderTest::testPsr4()
Test PSR-4-like namespaces.
File
- tests/
lib/ ClassLoaderTest.php, line 33
Class
Namespace
Drupal\xautoload\TestsCode
function testPsr4() {
// Prepare the class finder.
$finder = new ClassFinder();
$finder
->addPsr4('Drupal\\ex_ample\\', 'test://base/lib/');
$this
->assertCandidateOrder($finder, 'Drupal\\ex_ample\\Psr4_%\\Foo_Bar', array(
'test://base/lib/Psr4_%/Foo_Bar.php',
));
}