Pinq\Tests\Integration\ExpressionTrees\BasicInterpreterTest::testObjectMethodCall PHP Method

testObjectMethodCall() public method

    public function testObjectMethodCall()
    {
        $valueSet = [[new \DateTime()], [new \DateTime('-3 days')], [new \DateTime('+2 weeks')]];
        $this->assertRecompilesCorrectly(function (\DateTime $i) {
            return $i->format(\DateTime::ATOM);
        }, $valueSet);
        $this->assertRecompilesCorrectly(function (\DateTime $i) {
            return $i->getTimestamp();
        }, $valueSet);
    }