| 1 | <?php |
||
| 15 | class TestResultWithMessage extends MuteTestResult implements |
||
| 16 | PrintableTestResultInterface, |
||
| 17 | FunctionNameInterface, |
||
| 18 | FailureMessageInterface |
||
| 19 | { |
||
| 20 | /** @var string */ |
||
| 21 | private $functionName; |
||
| 22 | |||
| 23 | /** @var string */ |
||
| 24 | private $failureMessage; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * TestResultWithMessage constructor. |
||
| 28 | * @param string $functionName |
||
| 29 | * @param string $failureMessage |
||
| 30 | */ |
||
| 31 | 47 | public function __construct(string $functionName, string $failureMessage) |
|
| 37 | |||
| 38 | 15 | public function getFunctionName(): string |
|
| 42 | |||
| 43 | 17 | public function getFailureMessage(): string |
|
| 47 | } |
||
| 48 |