/**
  * Test PSR-4-like namespaces.
  */
 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'));
 }
 function testNamespaces()
 {
     // Prepare the class finder.
     $finder = new ClassFinder();
     $finder->add('Drupal\\ex_ample', 'sites/all/modules/contrib/ex_ample/lib-psr0');
     $finder->addPsr4('Drupal\\ex_ample', 'sites/all/modules/contrib/ex_ample/lib-psr4');
     // Test class finding for 'Drupal\\ex_ample\\Abc_Def'.
     $this->assertFinderSuggestions($finder, 'Drupal\\ex_ample\\Abc_Def', array(array('suggestFile', 'sites/all/modules/contrib/ex_ample/lib-psr0/Drupal/ex_ample/Abc/Def.php'), array('suggestFile', 'sites/all/modules/contrib/ex_ample/lib-psr4/Abc_Def.php')));
 }