Alcaeus\MongoDbAdapter\Tests\Mongo\MongoTimestampTest::testContructorArgumentOrderDiffers PHP Method

testContructorArgumentOrderDiffers() public method

    public function testContructorArgumentOrderDiffers()
    {
        $this->skipTestUnless(in_array(TypeInterface::class, class_implements('MongoTimestamp')));
        /* The legacy MongoTimestamp's constructor takes seconds before the
         * increment, while MongoDB\BSON\Timestamp takes the increment first.
         */
        $bsonTimestamp = new \MongoDB\BSON\Timestamp(12345, 67890);
        $timestamp = new \MongoTimestamp(67890, 12345);
        $this->assertSame((string) $bsonTimestamp, (string) $timestamp->toBSONType());
    }