diff --git a/src/Shared/Logger/Configurator/AbstractLoggerConfigurator.php b/src/Shared/Logger/Configurator/AbstractLoggerConfigurator.php index 09aa5e6..3623733 100644 --- a/src/Shared/Logger/Configurator/AbstractLoggerConfigurator.php +++ b/src/Shared/Logger/Configurator/AbstractLoggerConfigurator.php @@ -80,14 +80,4 @@ public function getConfiguratorByPluginName(string $pluginClass): PluginConfigur return $this->pluginConfiguratorCollection[$pluginClass]; } - - public function toArray(): array - { - return []; - } - - public function fromArray(array $data): self - { - return $this; - } } diff --git a/src/Shared/Testify/Logger/LoggerHelperTrait.php b/src/Shared/Testify/Logger/LoggerHelperTrait.php index d62d1ad..78f83f2 100644 --- a/src/Shared/Testify/Logger/LoggerHelperTrait.php +++ b/src/Shared/Testify/Logger/LoggerHelperTrait.php @@ -31,16 +31,10 @@ protected function assertEmptyLogFile(): void protected function assertLogFile(TestLoggerConfigurator $configurator): void { - if (!is_file($this->logFilename)) { - return; - } + $this->assertFileExists($this->logFilename); $logData = shell_exec('tail -n 1 ' . $this->logFilename); - if ($logData === null) { - $this->assertFalse(false); - - return; - } + $this->assertNotNull($logData); $jsonContextString = json_encode($configurator->getContext()); $jsonExtraString = json_encode($configurator->getExtra());