Tester\CodeCoverage\Collector::collectPhpDbg PHP Method

collectPhpDbg() private static method

Collects information about code coverage.
private static collectPhpDbg ( ) : array
return array
    private static function collectPhpDbg()
    {
        $positive = phpdbg_end_oplog();
        $negative = phpdbg_get_executable();
        foreach ($positive as $file => &$lines) {
            $lines = array_fill_keys(array_keys($lines), 1);
        }
        foreach ($negative as $file => &$lines) {
            $lines = array_fill_keys(array_keys($lines), -1);
        }
        phpdbg_start_oplog();
        return [$positive, $negative];
    }