lithium\console\command\create\Test::_name PHP Method

_name() protected method

Get the class to be tested
protected _name ( string $request ) : string
$request string
return string
    protected function _name($request)
    {
        $type = $request->action;
        $name = $request->args();
        try {
            $command = $this->_instance($type);
        } catch (ClassNotFoundException $e) {
            $command = null;
        }
        if ($command) {
            $request->params['action'] = $name;
            $name = $command->invokeMethod('_class', array($request));
        }
        $request->params['action'] = $type;
        return $name;
    }