/**
  * @covers Xhprof::getCriticalPath
  * @uses Xhprof
  */
 public function testCriticalPath()
 {
     $xhprof = $this->getXhprofFixture();
     $path = $xhprof->getCriticalPath();
     $last = null;
     foreach ($path as $key => $value) {
         list($func, $call) = Xhprof::splitKey($key);
         $this->assertSame($last, $func);
         $last = $call;
     }
     $this->assertSame($last, 'bar@1');
 }