4 * This file is part of the Behat.
5 * (c) Konstantin Kudryashov <ever.zet@gmail.com>
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
11 namespace Behat\Behat\Tester\Result;
13 use Behat\Behat\Definition\Exception\SearchException;
14 use Behat\Testwork\Tester\Result\ExceptionResult;
17 * Represents a step test result with a failed definition search.
19 * @author Konstantin Kudryashov <ever.zet@gmail.com>
21 final class FailedStepSearchResult implements StepResult, ExceptionResult
24 * @var SearchException
26 private $searchException;
31 * @param SearchException $searchException
33 public function __construct(SearchException $searchException)
35 $this->searchException = $searchException;
41 public function hasException()
49 public function getException()
51 return $this->searchException;
57 public function isPassed()
65 public function getResultCode()