/**
  * @param string $testName
  */
 public function paintMethodStart($testName)
 {
     $this->caseIsArtificial = false;
     if (!$this->caseStarted) {
         $this->paintCaseStart(\SimpleTest::getContext()->getTest()->getLabel());
         $this->caseIsArtificial = true;
     }
     parent::paintMethodStart($testName);
     $this->junitXMLWriter->startTestCase($testName, \SimpleTest::getContext()->getTest());
     $this->methodStartTime = microtime(true);
     $this->assertionCount = 0;
     $this->reportedFailure = false;
     $this->methodStarted = true;
 }
 /**
  * @param \PHPSpec\Runner\ReporterEvent $reporterEvent
  */
 protected function startRenderingExample(ReporterEvent $reporterEvent)
 {
     $this->junitXMLWriter->startTestCase($reporterEvent->example, $this->testSuite->getExampleGroupClass($this->currentExampleGroupName), $this->testSuite->getExampleMethod($this->currentExampleGroupName, $reporterEvent->example));
     $this->exampleStartTime = microtime(true);
     $this->assertionCount = 0;
 }