alexia\mar\reporter::addToSection PHP Méthode

addToSection() public méthode

Add text to the specified section.
public addToSection ( $section, $test, $filePath, $lineNumber, $codeLine ) : void
Résultat 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];
    }