You are here

public function ReflectionTest::testGetParameterClassName in Drupal 9

@covers ::getParameterClassName @dataProvider providerGetParameterClassName

Parameters

string|null $expected:

\ReflectionParameter $parameter:

File

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

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));
}