1 | <?php |
||
15 | class GenericParser implements ParserChainElementInterface |
||
16 | { |
||
17 | /** @var TestResultFactory */ |
||
18 | protected $testResultFactory; |
||
19 | |||
20 | /** @var TestResultHandlerInterface */ |
||
21 | protected $testResultContainer; |
||
22 | |||
23 | /** @var string */ |
||
24 | protected $status; |
||
25 | |||
26 | /** @var string|null */ |
||
27 | protected $messageStartsWith; |
||
28 | |||
29 | /** |
||
30 | * GenericParser constructor. |
||
31 | * |
||
32 | * @param TestResultFactory $testResultFactory |
||
33 | * @param TestResultHandlerInterface $testResultContainer |
||
34 | * @param string $status The status that the parser should catch |
||
35 | * @param string | null $messageStartsWith The start of the message that the parser should look for, if any |
||
36 | */ |
||
37 | 57 | public function __construct( |
|
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | */ |
||
52 | 52 | public function handleLogItem(AbstractParaunitProcess $process, \stdClass $logItem) |
|
63 | |||
64 | 44 | protected function logMatches(\stdClass $log): bool |
|
84 | } |
||
85 |