protected function getResult()
    {
        $result = new TestResult($this->eventEmitter);
        $this->getLoader()->load($this->configuration->getPath());
        $this->factory->createComposite($this->configuration->getReporters());
        $this->runner->run($result);

        if ($result->getFailureCount() > 0) {
            return 1;
        }

        if ($result->isFocusedByDsl()) {
            return 2;
        }

        return 0;
    }
protected function getResult()
    {
        $result = new TestResult($this->eventEmitter);
        $this->getLoader()->load($this->configuration->getPath());
        $this->factory->createComposite($this->configuration->getReporters());
        $this->runner->run($result);

        if ($result->getFailureCount() > 0) {
            return 1;
        }

        if ($result->isFocusedByDsl()) {
            return 2;
        }

        return 0;
    }
protected function getResult ( ) { $ result = new TestResult ( $ this -> eventEmitter ) ; $ this -> getLoader ( ) -> load ( $ this -> configuration -> getPath ( ) ) ; $ this -> factory -> createComposite ( $ this -> configuration -> getReporters ( ) ) ; $ this -> runner -> run ( $ result ) ; if ( $ result -> getFailureCount ( ) > 0 ) { return 1 ; } if ( $ result -> isFocusedByDsl ( ) ) { return 2 ; } return 0 ; }
Return the result as an integer.

@return int
Return the result as an integer .