Bake\Shell\Task\TestTask::getRealClassName PHP Метод

getRealClassName() публичный Метод

Gets the real class name from the cake short form. If the class name is already suffixed with the type, the type will not be duplicated.
public getRealClassName ( string $type, string $class ) : string
$type string The Type of object you are generating tests for eg. controller.
$class string the Classname of the class the test is being generated for.
Результат string Real class name
    public function getRealClassName($type, $class)
    {
        $namespace = Configure::read('App.namespace');
        if ($this->plugin) {
            $namespace = str_replace('/', '\\', $this->plugin);
        }
        $suffix = $this->classSuffixes[strtolower($type)];
        $subSpace = $this->mapType($type);
        if ($suffix && strpos($class, $suffix) === false) {
            $class .= $suffix;
        }
        if ($type === 'controller' && $this->param('prefix')) {
            $subSpace .= '\\' . Inflector::camelize($this->param('prefix'));
        }
        return $namespace . '\\' . $subSpace . '\\' . $class;
    }