Sokil\Mongo\CursorTest::testMixedToMongoIdList PHP Метод

testMixedToMongoIdList() публичный Метод

    public function testMixedToMongoIdList()
    {
        // create new document
        $document = $this->collection->createDocument(array('p1' => 'v', 'p2' => 'doc1'))->save();
        $this->assertEquals(array(1, 'varchar_id', new \MongoId('5412ac982de57284568b4567'), new \MongoId('5412ac982de57284568b4568'), new \MongoId('5412ac982de57284568b4569'), $document->getId()), Cursor::mixedToMongoIdList(array(1, 'varchar_id', '5412ac982de57284568b4567', new \MongoId('5412ac982de57284568b4568'), array('_id' => new \MongoId('5412ac982de57284568b4569'), 'param' => 'value'), $document)));
    }