コード例 #1
0
ファイル: Collector.php プロジェクト: shabbyrobe/caper
 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;
         }
     }
 }
コード例 #2
0
ファイル: FuncTest.php プロジェクト: shabbyrobe/caper
 /** @dataProvider parseFunctionNameProvider */
 function testParseFunctionName($in, $out)
 {
     return $this->assertEquals($out, \Caper\Func::parse($in));
 }