protected function ClassFinderTest::assertFinderSuggestions in X Autoload 7.3
Parameters
\xautoload_ClassFinder_Interface $finder:
string $class:
array $expectedSuggestions:
2 calls to ClassFinderTest::assertFinderSuggestions()
- ClassFinderTest::testNamespaces in tests/
Drupal/ xautoload/ Tests/ ClassFinderTest.php - ClassFinderTest::testPrefixes in tests/
Drupal/ xautoload/ Tests/ ClassFinderTest.php
File
- tests/
Drupal/ xautoload/ Tests/ ClassFinderTest.php, line 54
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
->assertTrue(TRUE, "Successfully loaded {$class}");
}