public function testEvent()
 {
     $testCase = new TestCase();
     $event = new TestCaseFinishedEvent();
     $event->process($testCase);
     $this->assertNotEmpty($testCase->getStop());
 }
 protected function processTestCaseFinishedEvent(TestCaseFinishedEvent $event)
 {
     $testCase = $this->getTestCaseStorage()->get();
     $event->process($testCase);
     $rootStep = $this->getStepStorage()->pollLast();
     foreach ($rootStep->getSteps() as $step) {
         $testCase->addStep($step);
     }
     foreach ($rootStep->getAttachments() as $attachment) {
         $testCase->addAttachment($attachment);
     }
     $this->getTestCaseStorage()->clear();
 }