alexia\mar\reporter::addToSection PHP Method

addToSection() public method

Add text to the specified section.
public addToSection ( $section, $test, $filePath, $lineNumber, $codeLine ) : void
return void
    public function addToSection($section, $test, $filePath, $lineNumber, $codeLine)
    {
        if (empty($section)) {
            throw new \Exception(__METHOD__ . ": The section can not be empty.");
        }
        $this->sectionBuffers[$section][$filePath][$test][] = [$lineNumber, $codeLine];
    }