public final function containsResult($expected) { $output = false; $results = $this->getResults(); foreach ($results as $result) { if ($result->getResult() === $expected) { $output = true; } } return $output; }