예제 #1
0
 /**
  * Define a test.
  *
  * @param string  $name     The name of the test
  * @param Closure $callback The callback to execute
  *
  * @return Test
  */
 function test($name, Closure $callback = null)
 {
     $runner = Runner::instance();
     $test = new Test($name, $runner, $callback);
     $runner->addTest($test);
     return $test;
 }
예제 #2
0
 /**
  * Set an option value statically.
  *
  * @param string $key   The key to set
  * @param mixed  $value The value to set
  *
  * @return mixed
  */
 public static function set($key, $value)
 {
     return Runner::instance()->options->setValueForPath($key, $value);
 }