/** * @expectedException \Sokil\Mongo\Exception * @expectedExceptionMessage Error #16722: exception: ReferenceError: gversion is not defined */ public function testExecuteInvalidJs() { $this->database->executeJS('gversion()'); }