@@ -25,6 +25,7 @@ class AddConsoleCommandPassTest extends \PHPUnit_Framework_TestCase
25
25
public function testProcess ($ public )
26
26
{
27
27
$ container = new ContainerBuilder ();
28
+ $ container ->setResourceTracking (false );
28
29
$ container ->addCompilerPass (new AddConsoleCommandPass ());
29
30
$ container ->setParameter ('my-command.class ' , 'Symfony\Component\Console\Tests\DependencyInjection\MyCommand ' );
30
31
@@ -55,6 +56,7 @@ public function visibilityProvider()
55
56
public function testProcessThrowAnExceptionIfTheServiceIsAbstract ()
56
57
{
57
58
$ container = new ContainerBuilder ();
59
+ $ container ->setResourceTracking (false );
58
60
$ container ->addCompilerPass (new AddConsoleCommandPass ());
59
61
60
62
$ definition = new Definition ('Symfony\Component\Console\Tests\DependencyInjection\MyCommand ' );
@@ -72,6 +74,7 @@ public function testProcessThrowAnExceptionIfTheServiceIsAbstract()
72
74
public function testProcessThrowAnExceptionIfTheServiceIsNotASubclassOfCommand ()
73
75
{
74
76
$ container = new ContainerBuilder ();
77
+ $ container ->setResourceTracking (false );
75
78
$ container ->addCompilerPass (new AddConsoleCommandPass ());
76
79
77
80
$ definition = new Definition ('SplObjectStorage ' );
@@ -84,6 +87,7 @@ public function testProcessThrowAnExceptionIfTheServiceIsNotASubclassOfCommand()
84
87
public function testHttpKernelRegisterCommandsIngoreCommandAsAService ()
85
88
{
86
89
$ container = new ContainerBuilder ();
90
+ $ container ->setResourceTracking (false );
87
91
$ container ->addCompilerPass (new AddConsoleCommandPass ());
88
92
$ definition = new Definition ('Symfony\Component\Console\Tests\DependencyInjection\MyCommand ' );
89
93
$ definition ->addTag ('console.command ' );
0 commit comments