| Total Complexity | 4 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | abstract class Base extends TestCase |
||
| 17 | { |
||
| 18 | /** @var mixed Last logs. */ |
||
| 19 | public $logs; |
||
| 20 | |||
| 21 | /** @var bool Last logs. */ |
||
| 22 | private $logToFile; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * This method is called when a test method did not execute successfully. |
||
| 26 | * |
||
| 27 | * @codeCoverageIgnore |
||
| 28 | * |
||
| 29 | * @param \Throwable $t |
||
| 30 | */ |
||
| 31 | protected function onNotSuccessfulTest(\Throwable $t): void |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Disable system logs. |
||
| 44 | * |
||
| 45 | * @return void |
||
| 46 | */ |
||
| 47 | protected function disableLogs(): void |
||
| 48 | { |
||
| 49 | $this->logToFile = \App\Log::$logToFile; |
||
| 50 | \App\Log::$logToFile = false; |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Enable system logs. |
||
| 55 | * |
||
| 56 | * @return void |
||
| 57 | */ |
||
| 58 | protected function enableLogs(): void |
||
| 61 | } |
||
| 62 | } |
||
| 63 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths