| 1 | <?php |
||
| 9 | class TestResultFormat |
||
| 10 | { |
||
| 11 | /** @var string */ |
||
| 12 | private $testResultSymbol; |
||
| 13 | |||
| 14 | /** @var string */ |
||
| 15 | private $tag; |
||
| 16 | |||
| 17 | /** @var string */ |
||
| 18 | private $title; |
||
| 19 | |||
| 20 | /** @var bool */ |
||
| 21 | private $printTestOutput; |
||
| 22 | |||
| 23 | /** @var bool */ |
||
| 24 | private $printFilesRecap; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * TestResultFormat constructor. |
||
| 28 | * @param string $testResultSymbol |
||
| 29 | * @param string $tag |
||
| 30 | * @param string $title |
||
| 31 | * @param bool $printTestOutput |
||
| 32 | * @param bool $printFilesRecap |
||
| 33 | */ |
||
| 34 | 46 | public function __construct($testResultSymbol, $tag, $title, $printTestOutput = true, $printFilesRecap = true) |
|
| 35 | { |
||
| 36 | 46 | $this->testResultSymbol = $testResultSymbol; |
|
| 37 | 46 | $this->tag = $tag; |
|
| 38 | 46 | $this->title = $title; |
|
| 39 | 46 | $this->printTestOutput = $printTestOutput; |
|
| 40 | 46 | $this->printFilesRecap = $printFilesRecap; |
|
| 41 | 46 | } |
|
| 42 | |||
| 43 | /** |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | 21 | public function getTestResultSymbol() |
|
| 50 | |||
| 51 | /** |
||
| 52 | * @return string |
||
| 53 | */ |
||
| 54 | 18 | public function getTag() |
|
| 58 | |||
| 59 | /** |
||
| 60 | * @return string |
||
| 61 | */ |
||
| 62 | 9 | public function getTitle() |
|
| 66 | |||
| 67 | /** |
||
| 68 | * @return boolean |
||
| 69 | */ |
||
| 70 | 9 | public function shouldPrintTestOutput() |
|
| 74 | |||
| 75 | /** |
||
| 76 | * @return boolean |
||
| 77 | */ |
||
| 78 | 9 | public function shouldPrintFilesRecap() |
|
| 82 | } |
||
| 83 |