public function add(ProcessWrapper $processWrapper): void
    {
        $className = $processWrapper->getClassName();
        if (isset($this->processes[$className])) {
            throw new \InvalidArgumentException(
                sprintf(
                    'Testcase with name "%s" was already added, make sure you don\'t have duplicate class names.',
                    $className
                )
            );
        }

        $this->processes[$className] = $processWrapper;

        $this->graph->createVertex($className);

        if ($this->publisher) {
            $this->publisher->publishResults($className, ProcessWrapper::PROCESS_STATUS_QUEUED, null);
        }
    }
public function add(ProcessWrapper $processWrapper): void
    {
        $className = $processWrapper->getClassName();
        if (isset($this->processes[$className])) {
            throw new \InvalidArgumentException(
                sprintf(
                    'Testcase with name "%s" was already added, make sure you don\'t have duplicate class names.',
                    $className
                )
            );
        }

        $this->processes[$className] = $processWrapper;

        $this->graph->createVertex($className);

        if ($this->publisher) {
            $this->publisher->publishResults($className, ProcessWrapper::PROCESS_STATUS_QUEUED, null);
        }
    }
public function add ( ProcessWrapper $ processWrapper ) : void { $ className = $ processWrapper -> getClassName ( ) ; if ( isset ( $ this -> processes [ $ className ] ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Testcase with name "%s" was already added, make sure you don\'t have duplicate class names.' , $ className ) ) ; } $ this -> processes [ $ className ] = $ processWrapper ; $ this -> graph -> createVertex ( $ className ) ; if ( $ this -> publisher ) { $ this -> publisher -> publishResults ( $ className , ProcessWrapper :: PROCESS_STATUS_QUEUED , null ) ; } }
Add new process to the set.
Add new process to the set .