/** * @expectedException Epic_Mongo_Exception */ public function testCreateReferenceException2() { $doc = new Epic_Mongo_Document(array(), array('collection' => 'test_document', 'pathToDocument' => 'test')); $doc->createReference(); }