lithium\console\command\create\Test::_name()

protected method

Get the class to be tested

Parameters

  • object $request

Returns

string

Source

	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', [$request]);
		}
		$request->params['action'] = $type;
		return $name;
	}