From 06d00995049db9c7b915f67cfd4a5708aace458f Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Mon, 30 Oct 2023 20:47:27 +0100 Subject: Require PHP 7.4+ (#5720) * Require PHP 7.4+ https://github.com/FreshRSS/FreshRSS/discussions/5474 * Update Docker oldest Alpine 3.13 with PHP 7.4.26 * Add missing packets to Docker oldest * Update to typed properties https://php.net/migration74.new-features#migration74.new-features.core.typed-properties * More types --- tests/app/Models/LogDAOTest.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'tests/app') diff --git a/tests/app/Models/LogDAOTest.php b/tests/app/Models/LogDAOTest.php index dc9fbd316..4d9ec0e7d 100644 --- a/tests/app/Models/LogDAOTest.php +++ b/tests/app/Models/LogDAOTest.php @@ -6,11 +6,9 @@ use PHPUnit\Framework\TestCase; class LogDAOTest extends TestCase { private const LOG_FILE_TEST = 'logFileTest.txt'; - /** @var FreshRSS_LogDAO */ - private $logDAO; + private FreshRSS_LogDAO $logDAO; - /** @var string */ - private $logPath; + private string $logPath; protected function setUp(): void { $this->logDAO = new FreshRSS_LogDAO(); @@ -27,7 +25,6 @@ class LogDAOTest extends TestCase { $line = $this->logDAO::lines(self::LOG_FILE_TEST); - self::assertIsArray($line); self::assertCount(1, $line); self::assertInstanceOf(FreshRSS_Log::class, $line[0]); self::assertEquals('Wed, 08 Feb 2023 15:35:05 +0000', $line[0]->date()); -- cgit v1.2.3