File: 0005-Use-expectException-instead-of-deprecated-setExpecte.patch

package info (click to toggle)
phpdox 0.8.1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,376 kB
  • ctags: 2,505
  • sloc: xml: 51,137; php: 8,771; makefile: 19
file content (22 lines) | stat: -rw-r--r-- 945 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
22
From: =?utf-8?q?David_Pr=C3=A9vot?= <david@tilapin.org>
Date: Thu, 17 Mar 2016 22:11:04 -0400
Subject: Use expectException instead of deprecated setExpectedException

Forwarded: https://github.com/theseer/phpdox/pull/268
---
 tests/Unit/config/GlobalConfigTest.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/Unit/config/GlobalConfigTest.php b/tests/Unit/config/GlobalConfigTest.php
index f3fa720..0f7a869 100644
--- a/tests/Unit/config/GlobalConfigTest.php
+++ b/tests/Unit/config/GlobalConfigTest.php
@@ -239,7 +239,7 @@ namespace TheSeer\phpDox {
          */
         public function testInvalidPropertyRequestThrowsException($file, $code) {
             $this->init('resolver/' .  $file);
-            $this->setExpectedException('TheSeer\\phpDox\\ConfigException', $code);
+            $this->expectException('TheSeer\\phpDox\\ConfigException', $code);
             $this->config->getProjects();
         }