src/PHPUnit/CheckAnnotations.php
public function main(string $pathToTestsDirectory): array
    {
        if (!is_dir($pathToTestsDirectory)) {
            throw new \InvalidArgumentException(
                '$pathToTestsDirectory "' . $pathToTestsDirectory . '" does not exist"'
            );
        }
        $this->largePath  = $pathToTestsDirectory . '/Large';
        $this->mediumPath = $pathToTestsDirectory . '/Medium';
        $this->smallPath  = $pathToTestsDirectory . '/Small';
        $this->checkLarge();
        $this->checkMedium();
        $this->checkSmall();

        return $this->errors;
    }
public function main(string $pathToTestsDirectory): array
    {
        if (!is_dir($pathToTestsDirectory)) {
            throw new \InvalidArgumentException(
                '$pathToTestsDirectory "' . $pathToTestsDirectory . '" does not exist"'
            );
        }
        $this->largePath  = $pathToTestsDirectory . '/Large';
        $this->mediumPath = $pathToTestsDirectory . '/Medium';
        $this->smallPath  = $pathToTestsDirectory . '/Small';
        $this->checkLarge();
        $this->checkMedium();
        $this->checkSmall();

        return $this->errors;
    }
public function main ( string $ pathToTestsDirectory ) : array { if ( ! is_dir ( $ pathToTestsDirectory ) ) { throw new \ InvalidArgumentException ( '$pathToTestsDirectory "' . $ pathToTestsDirectory . '" does not exist"' ) ; } $ this -> largePath = $ pathToTestsDirectory . '/Large' ; $ this -> mediumPath = $ pathToTestsDirectory . '/Medium' ; $ this -> smallPath = $ pathToTestsDirectory . '/Small' ; $ this -> checkLarge ( ) ; $ this -> checkMedium ( ) ; $ this -> checkSmall ( ) ; return $ this -> errors ; }
Check the Large and Medium directories, if they exist, and then assert that all tests have the correct annotation

@param string $pathToTestsDirectory

@return array of errors
Check the Large and Medium directories if they exist and then assert that all tests have the correct annotation