Mongolid\SchemaTest::createdAtTimestampsFixture PHP Method

createdAtTimestampsFixture() public method

    public function createdAtTimestampsFixture()
    {
        $driversDate = new MongoUTCDateTime(25);
        $serializableDate = new UTCDateTime(25);
        return ['MongoDB driver UTCDateTime' => ['value' => $driversDate, 'expectation' => $driversDate], 'Mongolid\'s serializable UTCDateTime' => ['value' => $serializableDate, 'expectation' => $serializableDate], 'Empty field' => ['value' => null, 'expectation' => new UTCDateTime(), 'compareTimestamp' => false], 'An string' => ['value' => 'foobar', 'expectation' => new UTCDateTime(), 'compareTimestamp' => false]];
    }