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;
14 * Represents an integer test result.
16 * @author Konstantin Kudryashov <ever.zet@gmail.com>
18 final class IntegerTestResult implements TestResult
26 * Initializes test result.
28 * @param integer $resultCode
30 public function __construct($resultCode)
32 $this->resultCode = $resultCode;
38 public function isPassed()
40 return self::PASSED == $this->getResultCode();
46 public function getResultCode()
48 return $this->resultCode;