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\Testwork\Tester\Result\Interpretation;
13 use Behat\Testwork\Tester\Result\ResultInterpreter;
14 use Behat\Testwork\Tester\Result\TestResult;
17 * Interprets particular test result by saying if it's failure or not.
19 * @see ResultInterpreter
21 * @author Konstantin Kudryashov <ever.zet@gmail.com>
23 interface ResultInterpretation
26 * Checks if provided test result should be considered as a failure.
28 * @param TestResult $result
32 public function isFailure(TestResult $result);