/**
  * @param TestRailRunReport $testRailRunReport
  */
 public function sync(TestRailRunReport $testRailRunReport)
 {
     $testCases = $this->getTest($testRailRunReport->getTestRunId());
     if (count($testCases) > 0) {
         foreach ($testCases as $testCase) {
             $normalizeTitle = static::normalizeStrToCaseIdent($testCase->title);
             $caseId = $testCase->case_id;
             $testId = $testCase->id;
             /** @var TestCase $case */
             if (!empty($normalizeTitle)) {
                 $case = $testRailRunReport->getCasesCollection()->find($this->findByNormalizeTitleCallback($normalizeTitle));
                 if ($case) {
                     $case->setId($caseId);
                     $case->setTestId($testId);
                 }
             }
         }
     }
 }