function collect($traceFile) { foreach ($this->parser->stackIterator($traceFile) as list($traceId, $call, $stack)) { $parsedName = \Caper\Func::parse($call->entry->function); if ($this->config->filter->isIncluded(...$parsedName)) { $this->functions[$call->entry->function][] = [$parsedName, $traceId, $call, $stack]; $this->functionIndex[$call->entry->function] = $parsedName; } } }
/** @dataProvider parseFunctionNameProvider */ function testParseFunctionName($in, $out) { return $this->assertEquals($out, \Caper\Func::parse($in)); }