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\TestResult;
16 * Interprets test results softly - everything that is not an explicit failure is a pass.
18 * @author Konstantin Kudryashov <ever.zet@gmail.com>
20 final class SoftInterpretation implements ResultInterpretation
25 public function isFailure(TestResult $result)
27 return TestResult::FAILED <= $result->getResultCode();