SebastianBergmann\PHPLOC\SingleTest::testExactlyTwoRowsArePrinted PHP Метод

testExactlyTwoRowsArePrinted() публичный Метод

    public function testExactlyTwoRowsArePrinted()
    {
        ob_start();
        $this->single->printResult('php://output', $this->sample_row);
        $output = ob_get_clean();
        $rows = explode("\n", trim($output));
        $this->assertEquals(2, count($rows), 'Printed result contained more or less than expected 2 rows');
    }