1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Fri, 21 Mar 2025 15:27:17 +0100
Subject: RequiresPhpunit('< 12') for test failing with PHPUnit 12
---
tests/config/ConfigPhpTest.php | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/config/ConfigPhpTest.php b/tests/config/ConfigPhpTest.php
index 7489fde..06f4729 100644
--- a/tests/config/ConfigPhpTest.php
+++ b/tests/config/ConfigPhpTest.php
@@ -2,6 +2,8 @@
namespace Shaarli\Config;
+use PHPUnit\Framework\Attributes\RequiresPhpunit;
+
/**
* Class ConfigPhpTest
*
@@ -44,6 +46,7 @@ class ConfigPhpTest extends \Shaarli\TestCase
/**
* Read an empty existent config file -> array with blank default values.
*/
+ #[RequiresPhpunit('< 12')]
public function testReadEmpty()
{
$dataFile = 'tests/utils/config/emptyConfigPhp.php';
|