Google\Cloud\Tests\Datastore\EntityMapperTest::testObjectPropertyDateTime PHP Method

testObjectPropertyDateTime() public method

    public function testObjectPropertyDateTime()
    {
        $res = $this->mapper->valueObject(new \DateTimeImmutable());
        $this->assertEquals((new \DateTimeImmutable())->format(self::DATE_FORMAT), $res['timestampValue']);
    }