<?php array_filter(array $array, ?callable $callback = null, int $mode = 0): array
<?php ): void { $logLines = explode("\n", $logs); $logLines = array_filter($logLines, function (string $line): bool { $line = trim($line); return $line !== '' && (strpos($line, 'START') !== 0) && (strpos($line, 'END') !== 0) && (strpos($line, 'REPORT') !== 0); }); $this->assertCount(1, $logLines); $logLine = reset($logLines);