Ejemplo n.º 1
0
 public function testGetSchema()
 {
     $schema = new Mongo_Mongo_Schema();
     Epic_Mongo::addSchema('test', $schema);
     $this->assertInstanceOf('Epic_Mongo_Schema', Epic_Mongo::getSchema('test'));
 }
Ejemplo n.º 2
0
 public function testAddSchema()
 {
     Epic_Mongo::addSchema('testCollection', new Collection_Mongo_Schema());
     $this->assertInstanceOf('Epic_Mongo_Schema', Epic_Mongo::getSchema('testCollection'));
 }