File: Use-installed-class-for-DEP-8-tests.patch

package info (click to toggle)
php-zeta-console-tools 1.7-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,680 kB
  • sloc: php: 14,911; xml: 3,111; makefile: 16; sh: 7
file content (21 lines) | stat: -rw-r--r-- 861 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?= <taffit@debian.org>
Date: Sun, 28 Sep 2014 16:40:08 -0400
Subject: Use installed class for DEP-8 tests

---
 tests/statusbar_test.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/statusbar_test.php b/tests/statusbar_test.php
index 9a685c0..541097e 100644
--- a/tests/statusbar_test.php
+++ b/tests/statusbar_test.php
@@ -343,7 +343,7 @@ class ezcConsoleStatusbarTest extends ezcTestCase
     public function catchWarning( $errno, $errstr, $errfile, $errline, $errcontext )
     {
         $this->assertEquals( "Unknown status 'foo'.", $errstr );
-        $this->assertEquals( realpath( dirname( __FILE__ ) . "/../src/statusbar.php" ), $errfile );
+        $this->assertEquals( realpath( "/usr/share/php/ezc/ConsoleTools/statusbar.php" ), $errfile );
         $this->errorCaught = true;
     }
 }