File: 0002-Move-helpers-into-Mockery-directory.patch

package info (click to toggle)
php-mockery 1.6.12-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 34,988 kB
  • sloc: php: 12,443; xml: 1,716; makefile: 204; sh: 47; python: 43
file content (42 lines) | stat: -rw-r--r-- 1,129 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
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Sun, 30 Jun 2019 16:28:16 -1000
Subject: Move helpers into Mockery directory
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

We don’t want it lying around in /usr/share/php on its own.

Forwarded: not-needed
---
 composer.json       | 3 +--
 library/Mockery.php | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/composer.json b/composer.json
index 6f03cf2..7ee07e7 100644
--- a/composer.json
+++ b/composer.json
@@ -60,8 +60,7 @@
             "Mockery\\": "library/Mockery"
         },
         "files": [
-            "library/helpers.php",
-            "library/Mockery.php"
+            "helpers.php"
         ]
     },
     "autoload-dev": {
diff --git a/library/Mockery.php b/library/Mockery.php
index 1370cea..fdea4eb 100644
--- a/library/Mockery.php
+++ b/library/Mockery.php
@@ -382,7 +382,7 @@ class Mockery
      */
     public static function globalHelpers()
     {
-        require_once __DIR__ . '/helpers.php';
+        require_once __DIR__ . '/Mockery/helpers.php';
     }
 
     /**