public function testNew()
{
$this->doAnalysisTest(function () {
new \DateTimeZone('123');
}, function (ITypeAnalysis $analysis, O\NewExpression $expression) {
$this->assertTypeMatchesValue($analysis, $expression->getArguments()[0]->getValue(), $this->typeSystem->getNativeType(INativeType::TYPE_STRING));
$this->assertEqualsObjectType('DateTimeZone', $analysis->getConstructor($expression)->getSourceType());
$this->assertEqualsObjectType('DateTimeZone', $analysis->getConstructor($expression)->getReturnType());
$this->assertSame(true, $analysis->getConstructor($expression)->getReflection()->isConstructor());
$this->assertSame('DateTimeZone', $analysis->getConstructor($expression)->getReflection()->getDeclaringClass()->getName());
});
}