executeJS() public method

public executeJS ( $code, array $args = [] )
$args array
Example #1
0
 /**
  * @expectedException \Sokil\Mongo\Exception
  * @expectedExceptionMessage Error #16722: exception: ReferenceError: gversion is not defined
  */
 public function testExecuteInvalidJs()
 {
     $this->database->executeJS('gversion()');
 }