public function isWorking()
    {
        if (null != $this->exception) {
            return false;
        }

        foreach ($this->getTests() as $test) {
            if ($test->hasFailed()) {
                $this->exception = new \Exception('Tests failed');
                return false;
            }
        }

        return true;
    }
public function isWorking()
    {
        if (null != $this->exception) {
            return false;
        }

        foreach ($this->getTests() as $test) {
            if ($test->hasFailed()) {
                $this->exception = new \Exception('Tests failed');
                return false;
            }
        }

        return true;
    }
public function isWorking ( ) { if ( null != $ this -> exception ) { return false ; } foreach ( $ this -> getTests ( ) as $ test ) { if ( $ test -> hasFailed ( ) ) { $ this -> exception = new \ Exception ( 'Tests failed' ) ; return false ; } } return true ; }
Application is working if all tests are OK & no down exception is set

@return boolean
Application is working if all tests are OK & no down exception is set