Validates a collection. The method scans a collection’s data structures
for correctness and returns a single document that describes the
relationship between the logical collection and the physical
representation of the data.
public function testValidateOnExistedCollection() { $this->collection->createDocument(array('param' => 1))->save(); $result = $this->collection->validate(true); $this->assertInternalType('array', $result); }