public function ReflectionTest::providerGetParameterClassName in Drupal 9
Data provider for ::testGetParameterClassName().
Return value
array[]
File
- core/
tests/ Drupal/ Tests/ Component/ Utility/ ReflectionTest.php, line 30
Class
- ReflectionTest
- @coversDefaultClass \Drupal\Component\Utility\Reflection @group Utility
Namespace
Drupal\Tests\Component\UtilityCode
public function providerGetParameterClassName() {
$reflection_method = new \ReflectionMethod(static::class, 'existsForTesting');
$parameters = $reflection_method
->getParameters();
return [
'string' => [
NULL,
$parameters[0],
],
'array' => [
NULL,
$parameters[1],
],
'same class' => [
'Drupal\\Tests\\Component\\Utility\\ReflectionTest',
$parameters[2],
],
'class' => [
'Drupal\\Component\\Utility\\Reflection',
$parameters[3],
],
'parent' => [
'PHPUnit\\Framework\\TestCase',
$parameters[4],
],
'self' => [
'Drupal\\Tests\\Component\\Utility\\ReflectionTest',
$parameters[5],
],
];
}