Inheritance: extends My_ShantyMongo_Abstract
示例#1
0
 /**
  * @expectedException Shanty_Mongo_Exception
  */
 public function testGetMongoCollectionException()
 {
     My_ShantyMongo_Name::getMongoCollection();
 }
示例#2
0
 /**
  * Make sure an exception is thrown if document does not belong to a collection
  * 
  * @expectedException Shanty_Mongo_Exception
  */
 public function testDeleteException()
 {
     $name = new My_ShantyMongo_Name();
     $name->delete();
 }