src/EnvironmentCheckSuite.php
public function run()
    {
        $result = new EnvironmentCheckSuiteResult();

        foreach ($this->checkInstances() as $check) {
            list($checkClass, $checkTitle) = $check;
            try {
                list($status, $message) = $checkClass->check();
            // If the check fails, register that as an error
            } catch (Exception $e) {
                $status = EnvironmentCheck::ERROR;
                $message = $e->getMessage();
            }
            $result->addResult($status, $message, $checkTitle);
        }

        return $result;
    }
public function run()
    {
        $result = new EnvironmentCheckSuiteResult();

        foreach ($this->checkInstances() as $check) {
            list($checkClass, $checkTitle) = $check;
            try {
                list($status, $message) = $checkClass->check();
            // If the check fails, register that as an error
            } catch (Exception $e) {
                $status = EnvironmentCheck::ERROR;
                $message = $e->getMessage();
            }
            $result->addResult($status, $message, $checkTitle);
        }

        return $result;
    }
public function run ( ) { $ result = new EnvironmentCheckSuiteResult ( ) ; foreach ( $ this -> checkInstances ( ) as $ check ) { list ( $ checkClass , $ checkTitle ) = $ check ; try { list ( $ status , $ message ) = $ checkClass -> check ( ) ; // If the check fails, register that as an error } catch ( Exception $ e ) { $ status = EnvironmentCheck :: ERROR ; $ message = $ e -> getMessage ( ) ; } $ result -> addResult ( $ status , $ message , $ checkTitle ) ; } return $ result ; }
Run this test suite and return the result code of the worst result.

@return EnvironmentCheckSuiteResult
Run this test suite and return the result code of the worst result .