/** * Add new TestCase event to statistics. * * @param TestCaseEvent $caseEvent * @param \ArrayObject $events * * @return ClassStatistics */ public function add(TestCaseEvent $caseEvent, \ArrayObject $events) { $statistics = new self(); $statistics->addEvents($events); $statistics->setCaseEvent($caseEvent); $this->storage[$caseEvent->getClass()] = $statistics; $this->addEvents($events); return $statistics; }