File: Fix-FTBFS-with-phpunit-10.patch

package info (click to toggle)
php-net-ldap2 2.3.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 824 kB
  • sloc: php: 3,175; xml: 888; sh: 99; makefile: 9
file content (28 lines) | stat: -rw-r--r-- 827 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
From: Guilhem Moulin <guilhem@debian.org>
Date: Mon, 21 Dec 2020 14:39:01 +0100
Subject: Fix FTBFS with phpunit 10.

Last-Update: 2023-07-08
Forwarded: not-needed
Bug-Debian: https://bugs.debian.org/1039807
---
 tests/Net_LDAP2_TestBase.php | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/tests/Net_LDAP2_TestBase.php b/tests/Net_LDAP2_TestBase.php
index abf005b..66264e7 100644
--- a/tests/Net_LDAP2_TestBase.php
+++ b/tests/Net_LDAP2_TestBase.php
@@ -1,12 +1,5 @@
 <?php
 class Net_LDAP2_TestBase extends \PHPUnit\Framework\TestCase
 {
-    public static function assertTrue($condition, string $message = ''): void
-    {
-        if ($condition instanceof Net_LDAP2_Error) {
-            self::fail('Error: ' . $condition->getMessage());
-        }
-        parent::assertTrue($condition, $message);
-    }
 }
 ?>