File: 0002-Rename-BaseMatcherTest-as-BaseMatcherTestCase.patch

package info (click to toggle)
php-hamcrest 2.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,088 kB
  • sloc: php: 6,340; makefile: 14; sh: 9
file content (84 lines) | stat: -rw-r--r-- 2,510 bytes parent folder | download | duplicates (2)
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Fri, 27 Dec 2024 22:53:47 +0100
Subject: Rename BaseMatcherTest as BaseMatcherTestCase

Bug-Debian: https://bugs.debian.org/1070553
---
 tests/Hamcrest/BaseMatcherTest.php     | 23 -----------------------
 tests/Hamcrest/BaseMatcherTestCase.php | 23 +++++++++++++++++++++++
 tests/Hamcrest/InvokedMatcherTest.php  |  2 +-
 3 files changed, 24 insertions(+), 24 deletions(-)
 delete mode 100644 tests/Hamcrest/BaseMatcherTest.php
 create mode 100644 tests/Hamcrest/BaseMatcherTestCase.php

diff --git a/tests/Hamcrest/BaseMatcherTest.php b/tests/Hamcrest/BaseMatcherTest.php
deleted file mode 100644
index 833e2c3..0000000
--- a/tests/Hamcrest/BaseMatcherTest.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-namespace Hamcrest;
-
-/* Test-specific subclass only */
-class BaseMatcherTest extends \Hamcrest\BaseMatcher
-{
-
-    public function matches($item)
-    {
-        throw new \RuntimeException();
-    }
-
-    public function describeTo(\Hamcrest\Description $description)
-    {
-        $description->appendText('SOME DESCRIPTION');
-    }
-
-    public function testDescribesItselfWithToStringMethod()
-    {
-        $someMatcher = new \Hamcrest\SomeMatcher();
-        $this->assertEquals('SOME DESCRIPTION', (string) $someMatcher);
-    }
-}
diff --git a/tests/Hamcrest/BaseMatcherTestCase.php b/tests/Hamcrest/BaseMatcherTestCase.php
new file mode 100644
index 0000000..f230b4d
--- /dev/null
+++ b/tests/Hamcrest/BaseMatcherTestCase.php
@@ -0,0 +1,23 @@
+<?php
+namespace Hamcrest;
+
+/* Test-specific subclass only */
+class BaseMatcherTestCase extends \Hamcrest\BaseMatcher
+{
+
+    public function matches($item)
+    {
+        throw new \RuntimeException();
+    }
+
+    public function describeTo(\Hamcrest\Description $description)
+    {
+        $description->appendText('SOME DESCRIPTION');
+    }
+
+    public function testDescribesItselfWithToStringMethod()
+    {
+        $someMatcher = new \Hamcrest\SomeMatcher();
+        $this->assertEquals('SOME DESCRIPTION', (string) $someMatcher);
+    }
+}
diff --git a/tests/Hamcrest/InvokedMatcherTest.php b/tests/Hamcrest/InvokedMatcherTest.php
index dfa7700..4c545d8 100644
--- a/tests/Hamcrest/InvokedMatcherTest.php
+++ b/tests/Hamcrest/InvokedMatcherTest.php
@@ -3,7 +3,7 @@ namespace Hamcrest;
 
 use PHPUnit\Framework\TestCase;
 
-class SampleInvokeMatcher extends BaseMatcherTest
+class SampleInvokeMatcher extends BaseMatcherTestCase
 {
     private $matchAgainst;