public function testMethodCalls()
{
$this->doAnalysisTest(function (\DateTime $dateTime) {
$dateTime->format('abc');
}, function (ITypeAnalysis $analysis, O\MethodCallExpression $expression) {
$this->assertTypeMatchesValue($analysis, $expression->getArguments()[0]->getValue());
$this->assertEqualsObjectType('DateTime', $analysis->getMethod($expression)->getSourceType());
$this->assertEqualsNativeType(INativeType::TYPE_STRING, $analysis->getMethod($expression)->getReturnType());
$this->assertSame('format', $analysis->getMethod($expression)->getReflection()->getName());
$this->assertSame('format', $analysis->getMethod($expression)->getName());
});
}