public function testIsMatchingReflectorReturnsFalseWhenTypeIsInvalid()
{
$classType = new IdentifierType(IdentifierType::IDENTIFIER_CLASS);
// We must use reflection to hack the value, because we cannot create
// an IdentifierType with an invalid type
$reflection = new \ReflectionObject($classType);
$prop = $reflection->getProperty('name');
$prop->setAccessible(true);
$prop->setValue($classType, 'nonsense');
$reflectionClass = $this->createMock(ReflectionClass::class);
$this->assertFalse($classType->isMatchingReflector($reflectionClass));
}