File: 0002-Update-DataProvider-expected-arguments-list.patch

package info (click to toggle)
php-doctrine-dbal 4.3.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 5,092 kB
  • sloc: php: 60,293; xml: 618; makefile: 23
file content (32 lines) | stat: -rw-r--r-- 1,462 bytes parent folder | download
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
30
31
32
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Sat, 12 Jul 2025 18:01:27 +0200
Subject: Update DataProvider expected arguments list

PHPUnit 12 warns that the number of arguments provided should match the
number of arguments expected by the test method.
---
 tests/Platforms/PostgreSQLPlatformTest.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/Platforms/PostgreSQLPlatformTest.php b/tests/Platforms/PostgreSQLPlatformTest.php
index d413f03..b0112ae 100644
--- a/tests/Platforms/PostgreSQLPlatformTest.php
+++ b/tests/Platforms/PostgreSQLPlatformTest.php
@@ -271,7 +271,7 @@ class PostgreSQLPlatformTest extends AbstractPlatformTestCase
     }
 
     #[DataProvider('serialTypes')]
-    public function testGetDefaultValueDeclarationSQLIgnoresTheDefaultKeyWhenTheFieldIsSerial(string $type): void
+    public function testGetDefaultValueDeclarationSQLIgnoresTheDefaultKeyWhenTheFieldIsSerial(string $type, string $definition): void
     {
         $sql = $this->platform->getDefaultValueDeclarationSQL(
             [
@@ -408,6 +408,8 @@ class PostgreSQLPlatformTest extends AbstractPlatformTestCase
     public function testConvertBooleanAsLiteralStrings(
         string $databaseValue,
         string $preparedStatementValue,
+        int $integerValue,
+        bool $booleanValue,
     ): void {
         self::assertEquals($preparedStatementValue, $this->platform->convertBooleans($databaseValue));
     }