public function testStaticMethodCall() { $this->assertReturnsObjectType(function () { \DateTime::createFromFormat(); }, 'DateTime'); $this->assertReturnsNativeType(function () { \DateTime::getLastErrors(); }, INativeType::TYPE_ARRAY); }