| 1 | <?php |
||
| 13 | class TestResultWithMessage extends MuteTestResult implements PrintableTestResultInterface, FunctionNameInterface, FailureMessageInterface |
||
| 14 | { |
||
| 15 | /** @var string */ |
||
| 16 | private $functionName; |
||
| 17 | |||
| 18 | /** @var string */ |
||
| 19 | private $failureMessage; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * TestResultWithMessage constructor. |
||
| 23 | * @param TestResultFormat $testResultFormat |
||
| 24 | * @param string $functionName |
||
| 25 | * @param string $failureMessage |
||
| 26 | */ |
||
| 27 | 30 | public function __construct(TestResultFormat $testResultFormat, $functionName, $failureMessage) |
|
| 33 | |||
| 34 | /** |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | 10 | public function getFunctionName() |
|
| 41 | |||
| 42 | /** |
||
| 43 | * @return string |
||
| 44 | */ |
||
| 45 | 11 | public function getFailureMessage() |
|
| 49 | } |
||
| 50 |