SebastianBergmann\PHPLOC\Log\CSV\Single::printResult PHP Method

printResult() public method

Prints a result set.
public printResult ( string $filename, array $count )
$filename string
$count array
    public function printResult($filename, array $count)
    {
        file_put_contents($filename, $this->getKeysLine($count) . $this->getValuesLine($count));
    }

Usage Example

コード例 #1
0
ファイル: HistoryTest.php プロジェクト: oytuntez/phploc
 public function testExactlyThreeRowsArePrinted()
 {
     ob_start();
     $this->history->printResult('php://output', $this->sample_data);
     $output = ob_get_clean();
     $rows = explode("\n", trim($output));
     $this->assertEquals(3, count($rows), "Printed result contained more or less than expected 2 rows");
 }
All Usage Examples Of SebastianBergmann\PHPLOC\Log\CSV\Single::printResult