public function testInMemory() { $dataSrc = new Memory(); $collector = new Collect($dataSrc); $collector->startCollection(); $sampleFilePath = __DIR__ . '/sample3.php'; require $sampleFilePath; $collector->save(); $this->expectOutputRegex('/.+/'); // No empty $html = new Html($dataSrc); $html->output(); }
<?php require 'vendor/autoload.php'; use PHPHD\View\Html; use PHPHD\DataSource\Serialize; // open data source $dataSrc = new Serialize('tests/acceptance/data/data.dump'); // read data source and generate report $html = new Html($dataSrc); $html->output();