protected function XAutoloadUnitTestCase::assertFinderSuggestions in X Autoload 7.3
Same name and namespace in other branches
- 7.5 lib/Drupal/xautoload/Tests/XAutoloadUnitTestCase.php \Drupal\xautoload\Tests\XAutoloadUnitTestCase::assertFinderSuggestions()
- 7.4 lib/Drupal/xautoload/Tests/XAutoloadUnitTestCase.php \Drupal\xautoload\Tests\XAutoloadUnitTestCase::assertFinderSuggestions()
Parameters
\xautoload_ClassFinder_Interface $finder:
string $class:
array $expectedSuggestions:
2 calls to XAutoloadUnitTestCase::assertFinderSuggestions()
- XAutoloadUnitTestCase::testNamespaces in lib/
Drupal/ xautoload/ Tests/ XAutoloadUnitTestCase.php - XAutoloadUnitTestCase::testPrefixes in lib/
Drupal/ xautoload/ Tests/ XAutoloadUnitTestCase.php
File
- lib/
Drupal/ xautoload/ Tests/ XAutoloadUnitTestCase.php, line 128
Class
Namespace
Drupal\xautoload\TestsCode
protected function assertFinderSuggestions($finder, $class, array $expectedSuggestions) {
for ($iAccept = 0; $iAccept < count($expectedSuggestions); ++$iAccept) {
$api = new \xautoload_Mock_InjectedAPI_findFile($this, $class, $expectedSuggestions, $iAccept);
$finder
->findFile($api, $class);
$api
->finish();
}
$api = new \xautoload_Mock_InjectedAPI_findFile($this, $class, $expectedSuggestions);
$finder
->findFile($api, $class);
$api
->finish();
$this
->assert(TRUE, "Successfully loaded {$class}");
}