protected function AuxiliaryTest::assertClasses in Autoload 7
Assert sought classes.
Parameters
string $namespace: Namespace of classes to seek for.
string[] $classes: Classes list.
1 call to AuxiliaryTest::assertClasses()
- SeekerTest::test in src/
Tests/ Unit/ SeekerTest.php - Unit tests for auxiliary functions.
File
- src/
Tests/ Unit/ AuxiliaryTest.php, line 51
Class
- AuxiliaryTest
- Class AuxiliaryTest.
Namespace
Drupal\autoload\Tests\UnitCode
protected function assertClasses($namespace, array $classes) {
$classes = array_combine($classes, $classes);
$this
->assertEqual($classes, array_intersect_key(autoload_seek_classes($namespace), $classes), 'Required classes found.');
}