You are here

public function ReflectionTest::testGetParameterClassName in Drupal 10

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Component/Utility/ReflectionTest.php \Drupal\Tests\Component\Utility\ReflectionTest::testGetParameterClassName()

@covers ::getParameterClassName @dataProvider providerGetParameterClassName

Parameters

string|null $expected: The expected value of the parameter.

\ReflectionParameter $parameter: The reflection parameter.

File

core/tests/Drupal/Tests/Component/Utility/ReflectionTest.php, line 23

Class

ReflectionTest
@coversDefaultClass \Drupal\Component\Utility\Reflection @group Utility

Namespace

Drupal\Tests\Component\Utility

Code

public function testGetParameterClassName(?string $expected, \ReflectionParameter $parameter) {
  $this
    ->assertEquals($expected, Reflection::getParameterClassName($parameter));
}