File: 0008-Use-ProphecyTrait.patch

package info (click to toggle)
php-slim 3.12.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,396 kB
  • sloc: php: 11,581; makefile: 18; xml: 10; sh: 3
file content (29 lines) | stat: -rw-r--r-- 824 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
From: James Valleroy <jvalleroy@mailbox.org>
Date: Mon, 18 Nov 2024 18:35:43 -0500
Subject: Use ProphecyTrait

---
 tests/Http/RequestTest.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/Http/RequestTest.php b/tests/Http/RequestTest.php
index 72f9175..2c03b90 100644
--- a/tests/Http/RequestTest.php
+++ b/tests/Http/RequestTest.php
@@ -10,6 +10,7 @@ namespace Slim\Tests\Http;
 use InvalidArgumentException;
 use PHPUnit;
 use Prophecy\Argument;
+use Prophecy\PhpUnit\ProphecyTrait;
 use Prophecy\Prophecy\MethodProphecy;
 use Psr\Http\Message\UriInterface;
 use ReflectionObject;
@@ -25,6 +26,8 @@ use Slim\Http\Uri;
 
 class RequestTest extends PHPUnit\Framework\TestCase
 {
+    use ProphecyTrait;
+
     public function requestFactory($envData = [])
     {
         $env = Environment::mock($envData);