コード例 #1
0
 public function testCounter1()
 {
     Profiler::count('foo');
     Profiler::count('bar');
     Profiler::count('par');
     Profiler::count('foo');
     Profiler::count('foo');
     Profiler::count('bar', 3);
     $this->assertSame([['name' => 'foo', 'count' => 3], ['name' => 'bar', 'count' => 4], ['name' => 'par', 'count' => 1]], Profiler::getCounterStat());
 }