protected function parseLine($line)
    {
        if (preg_match(self::TEST_DIAGNOSTIC, $line) || preg_match(self::TEST_COVERAGE, $line) || !$line) {
            return;
        }

        if (preg_match(self::TEST_COUNTS_PATTERN, $line, $matches)) {
            $this->testCount = intval($matches[1]);

            return;
        }

        if ($this->testDepends($line)) {
            return;
        }

        if ($this->testLine($line)) {
            return;
        }

        if ($this->yamlLine($line)) {
            return;
        }

        throw new Exception(sprintf('Incorrect TAP data, line %d: %s', $this->lineNumber, $line));
    }
protected function parseLine($line)
    {
        if (preg_match(self::TEST_DIAGNOSTIC, $line) || preg_match(self::TEST_COVERAGE, $line) || !$line) {
            return;
        }

        if (preg_match(self::TEST_COUNTS_PATTERN, $line, $matches)) {
            $this->testCount = intval($matches[1]);

            return;
        }

        if ($this->testDepends($line)) {
            return;
        }

        if ($this->testLine($line)) {
            return;
        }

        if ($this->yamlLine($line)) {
            return;
        }

        throw new Exception(sprintf('Incorrect TAP data, line %d: %s', $this->lineNumber, $line));
    }
protected function parseLine ( $ line ) { if ( preg_match ( self :: TEST_DIAGNOSTIC , $ line ) || preg_match ( self :: TEST_COVERAGE , $ line ) || ! $ line ) { return ; } if ( preg_match ( self :: TEST_COUNTS_PATTERN , $ line , $ matches ) ) { $ this -> testCount = intval ( $ matches [ 1 ] ) ; return ; } if ( $ this -> testDepends ( $ line ) ) { return ; } if ( $ this -> testLine ( $ line ) ) { return ; } if ( $ this -> yamlLine ( $ line ) ) { return ; } throw new Exception ( sprintf ( 'Incorrect TAP data, line %d: %s' , $ this -> lineNumber , $ line ) ) ; }
Parse a single line.

@param string $line

@throws Exception
Parse a single line .