public function trial($name, callable $callback, $context = null)
    {
        $this->trials[$name] = new Trial($name, $callback, $context);

        return $this;
    }
public function trial($name, callable $callback, $context = null)
    {
        $this->trials[$name] = new Trial($name, $callback, $context);

        return $this;
    }
public function trial ( $ name , callable $ callback , $ context = null ) { $ this -> trials [ $ name ] = new Trial ( $ name , $ callback , $ context ) ; return $ this ; }
Register a trial callback.

@param string   $name
@param callable $callback

@return $this
Register a trial callback .