Beispiel #1
0
 /**
  * @param Item $item
  */
 public function onFinish(Item $item)
 {
     $this->assertTrue($item->hasStatistics(self::class));
     $this->assertTrue($item->hasStatistics(self::class, 'onStart'));
     $this->assertTrue($item->getStatistic(self::class, 'onStart'));
     $this->assertTrue($item->getStatistic(self::class, 'onResume'));
     $this->assertTrue($item->getStatistic(self::class, 'onPause'));
     $ref =& $item->refScopeStatistic(self::class);
     $this->assertCount(4, $ref);
     $this->assertTrue($ref['onStop']);
     $ref['Ref'] = true;
     $this->assertTrue($item->getStatistic(self::class, 'Ref'));
     echo 'onFinish';
 }