alexia\mar\tests::testLine PHP Method

testLine() public method

Test the line of code and return issues found.
public testLine ( $line ) : array
return array Any issues found
    public function testLine($line)
    {
        $issues = [];
        foreach ($this->tests as $info) {
            $fail = call_user_func($info['callable'], $line);
            if ($fail) {
                $issues[$info['type']][$info['test']] = $fail;
            }
        }
        return $issues;
    }