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