public function testClass()
{
foreach (['stdClass', '\\stdClass', 'stdCLASS', '\\sTDClass'] as $stdClassName) {
$class = $this->typeSystem->getObjectType($stdClassName);
$this->assertSame('stdClass', $class->getClassType());
$this->assertSame('stdClass', $class->getReflection()->getName());
$constructor = $class->getConstructor(O\Expression::newExpression(O\Expression::value($stdClassName)));
$this->assertSame($this->typeSystem, $constructor->getTypeSystem());
$this->assertEqualTypes($this->typeSystem->getObjectType('stdClass'), $constructor->getReturnType());
$this->assertEqualTypes($this->typeSystem->getObjectType('stdClass'), $constructor->getSourceType());
$this->assertSame(false, $constructor->hasMethod());
$this->assertSame(null, $constructor->getReflection());
}
}