This repository was archived by the owner on Jan 29, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +19
-0
lines changed Expand file tree Collapse file tree 4 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 9
9
10
10
namespace ZendTest \Mvc \Application ;
11
11
12
+ use PHPUnit_Framework_Error_Deprecated ;
12
13
use PHPUnit_Framework_TestCase as TestCase ;
13
14
use Zend \Mvc \MvcEvent ;
14
15
15
16
class ExceptionsRaisedInDispatchableShouldRaiseDispatchErrorEventTest extends TestCase
16
17
{
17
18
use BadControllerTrait;
18
19
20
+ public function setUp ()
21
+ {
22
+ // Ignore deprecation errors
23
+ PHPUnit_Framework_Error_Deprecated::$ enabled = false ;
24
+ }
25
+
19
26
/**
20
27
* @group error-handling
21
28
*/
Original file line number Diff line number Diff line change 9
9
10
10
namespace ZendTest \Mvc \Controller ;
11
11
12
+ use PHPUnit_Framework_Error_Deprecated ;
12
13
use PHPUnit_Framework_TestCase as TestCase ;
13
14
use Zend \EventManager \EventManager ;
14
15
use Zend \EventManager \SharedEventManager ;
@@ -21,6 +22,9 @@ class IntegrationTest extends TestCase
21
22
{
22
23
public function setUp ()
23
24
{
25
+ // Ignore deprecation errors
26
+ PHPUnit_Framework_Error_Deprecated::$ enabled = false ;
27
+
24
28
$ this ->sharedEvents = new SharedEventManager ();
25
29
26
30
$ this ->services = new ServiceManager ();
Original file line number Diff line number Diff line change 9
9
10
10
namespace ZendTest \Mvc \Controller \Plugin ;
11
11
12
+ use PHPUnit_Framework_Error_Deprecated ;
12
13
use PHPUnit_Framework_TestCase as TestCase ;
13
14
use ReflectionClass ;
14
15
use stdClass ;
@@ -51,6 +52,9 @@ class ForwardTest extends TestCase
51
52
52
53
public function setUp ()
53
54
{
55
+ // Ignore deprecation errors
56
+ PHPUnit_Framework_Error_Deprecated::$ enabled = false ;
57
+
54
58
$ eventManager = $ this ->createEventManager (new SharedEventManager ());
55
59
$ mockApplication = $ this ->getMock ('Zend\Mvc\ApplicationInterface ' );
56
60
$ mockApplication ->expects ($ this ->any ())->method ('getEventManager ' )->will ($ this ->returnValue ($ eventManager ));
Original file line number Diff line number Diff line change 9
9
10
10
namespace ZendTest \Mvc \Service ;
11
11
12
+ use PHPUnit_Framework_Error_Deprecated ;
12
13
use PHPUnit_Framework_TestCase as TestCase ;
13
14
use Zend \EventManager \SharedEventManager ;
14
15
use Zend \Mvc \Service \ControllerManagerFactory ;
@@ -34,6 +35,9 @@ class ControllerManagerFactoryTest extends TestCase
34
35
35
36
public function setUp ()
36
37
{
38
+ // Ignore deprecation errors
39
+ PHPUnit_Framework_Error_Deprecated::$ enabled = false ;
40
+
37
41
$ loaderFactory = new ControllerManagerFactory ();
38
42
$ this ->defaultServiceConfig = [
39
43
'aliases ' => [
You can’t perform that action at this time.
0 commit comments