File: 0003-Use-homemade-autoloader-for-tests.patch

package info (click to toggle)
php-parser 3.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,940 kB
  • sloc: php: 14,410; yacc: 1,791; makefile: 23; sh: 4
file content (21 lines) | stat: -rw-r--r-- 533 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
From: =?utf-8?q?David_Pr=C3=A9vot?= <david@tilapin.org>
Date: Sun, 6 Sep 2015 15:52:27 -0400
Subject: Use homemade autoloader for tests

---
 test/bootstrap.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/bootstrap.php b/test/bootstrap.php
index 9526b64..1ce9ae3 100644
--- a/test/bootstrap.php
+++ b/test/bootstrap.php
@@ -2,7 +2,7 @@
 
 namespace PhpParser;
 
-require __DIR__ . '/../vendor/autoload.php';
+require 'PhpParser/autoload.php';
 
 function canonicalize($str) {
     // normalize EOL style