/** * @expectedException Shanty_Mongo_Exception */ public function testGetMongoCollectionException() { My_ShantyMongo_Name::getMongoCollection(); }
/** * 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(); }