Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Testwork / Tester / Result / Interpretation / ResultInterpretation.php
1 <?php
2
3 /*
4  * This file is part of the Behat.
5  * (c) Konstantin Kudryashov <ever.zet@gmail.com>
6  *
7  * For the full copyright and license information, please view the LICENSE
8  * file that was distributed with this source code.
9  */
10
11 namespace Behat\Testwork\Tester\Result\Interpretation;
12
13 use Behat\Testwork\Tester\Result\ResultInterpreter;
14 use Behat\Testwork\Tester\Result\TestResult;
15
16 /**
17  * Interprets particular test result by saying if it's failure or not.
18  *
19  * @see ResultInterpreter
20  *
21  * @author Konstantin Kudryashov <ever.zet@gmail.com>
22  */
23 interface ResultInterpretation
24 {
25     /**
26      * Checks if provided test result should be considered as a failure.
27      *
28      * @param TestResult $result
29      *
30      * @return Boolean
31      */
32     public function isFailure(TestResult $result);
33 }