File: 0001-Remove-GET-and-POST-sections-in-tests-to-fix-FTBFS-o.patch

package info (click to toggle)
php-db 1.11.0-0.2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,036 kB
  • sloc: php: 6,949; pascal: 999; xml: 192; sh: 22; makefile: 11
file content (58 lines) | stat: -rw-r--r-- 1,621 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
From: Mathieu Parent <math.parent@gmail.com>
Date: Sun, 17 Dec 2017 16:52:14 +0100
Bug-Debian: https://bugs.debian.org/882891
Subject: Remove GET and POST sections in tests to fix FTBFS on recent phpunit
 (Closes: #882891)

--- a/DB-1.11.0/tests/db_error.phpt
+++ b/DB-1.11.0/tests/db_error.phpt
@@ -57,10 +57,8 @@
 $e = new DB_Error(DB_ERROR_SYNTAX, PEAR_ERROR_TRIGGER, E_USER_NOTICE);
 $e = new DB_Error(DB_ERROR_SYNTAX, PEAR_ERROR_TRIGGER, E_USER_WARNING);
 $e = new DB_Error(DB_ERROR_SYNTAX, PEAR_ERROR_TRIGGER, E_USER_ERROR);
 ?>
---GET--
---POST--
 --EXPECT--
 testing different error codes...
 [db_error: message="db error: unknown error" code=-1 mode=return level=notice prefix="" info=""]
 [db_error: message="db error: test error" code=-1 mode=return level=notice prefix="" info=""]
--- a/DB-1.11.0/tests/db_factory.phpt
+++ b/DB-1.11.0/tests/db_factory.phpt
@@ -34,10 +34,8 @@
     }
 }
 
 ?>
---GET--
---POST--
 --EXPECT--
 testing dbase: object: db_dbase: (phptype=dbase, dbsyntax=dbase)
 testing fbsql: object: db_fbsql: (phptype=fbsql, dbsyntax=fbsql)
 testing ibase: object: db_ibase: (phptype=ibase, dbsyntax=ibase)
--- a/DB-1.11.0/tests/db_ismanip.phpt
+++ b/DB-1.11.0/tests/db_ismanip.phpt
@@ -34,10 +34,8 @@
 test("ALTER TABLE foo ADD COLUMN (bar INTEGER)");
 test("  SELECT * FROM table");
 test("  DELETE FROM table");
 ?>
---GET--
---POST--
 --EXPECT--
 testing DB::isManip...
 SELECT : 0
 Select : 0
--- a/DB-1.11.0/tests/db_parsedsn.phpt
+++ b/DB-1.11.0/tests/db_parsedsn.phpt
@@ -79,10 +79,8 @@
 );
 testArray($array);
 
 ?>
---GET--
---POST--
 --EXPECT--
 testing DB::parseDSN...
 
 DSN: mysql