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

package info (click to toggle)
php-zeta-console-tools 1.7.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,036 kB
  • sloc: php: 14,943; xml: 3,111; makefile: 13; sh: 7
file content (21 lines) | stat: -rw-r--r-- 868 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
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 a7d1856..8463022 100644
--- a/tests/statusbar_test.php
+++ b/tests/statusbar_test.php
@@ -351,7 +351,7 @@ class ezcConsoleStatusbarTest extends ezcTestCase
     public function catchWarning( $errno, $errstr, $errfile, $errline, $errcontext = null )
     {
         $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;
     }
 }