BetterReflectionTest\Reflection\ReflectionParameterTest::testCreateFromSpecWithInvalidArgumentThrowsException PHP Метод

testCreateFromSpecWithInvalidArgumentThrowsException() публичный Метод

    public function testCreateFromSpecWithInvalidArgumentThrowsException()
    {
        $this->expectException(\InvalidArgumentException::class);
        $this->expectExceptionMessage('Could not create reflection from the spec given');
        ReflectionParameter::createFromSpec(123, 'a');
    }