8000 Disable resourceTracking to get rid of Symfony\Config dependency in test · symfony/symfony@014c9eb · GitHub
[go: up one dir, main page]

Skip to content

Commit 014c9eb

Browse files
committed
Disable resourceTracking to get rid of Symfony\Config dependency in test
1 parent 1d7282e commit 014c9eb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Symfony/Component/Console/Tests/DependencyInjection/AddConsoleCommandPassTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class AddConsoleCommandPassTest extends \PHPUnit_Framework_TestCase
2525
public function testProcess($public)
2626
{
2727
$container = new ContainerBuilder();
28+
$container->setResourceTracking(false);
2829
$container->addCompilerPass(new AddConsoleCommandPass());
2930
$container->setParameter('my-command.class', 'Symfony\Component\Console\Tests\DependencyInjection\MyCommand');
3031

@@ -55,6 +56,7 @@ public function visibilityProvider()
5556
public function testProcessThrowAnExceptionIfTheServiceIsAbstract()
5657
{
5758
$container = new ContainerBuilder();
59+
$container->setResourceTracking(false);
5860
$container->addCompilerPass(new AddConsoleCommandPass());
5961

6062
$definition = new Definition('Symfony\Component\Console\Tests\DependencyInjection\MyCommand');
@@ -72,6 +74,7 @@ public function testProcessThrowAnExceptionIfTheServiceIsAbstract()
7274
public function testProcessThrowAnExceptionIfTheServiceIsNotASubclassOfCommand()
7375
{
7476
$container = new ContainerBuilder();
77+
$container->setResourceTracking(false);
7578
$container->addCompilerPass(new AddConsoleCommandPass());
7679

7780
$definition = new Definition('SplObjectStorage');
@@ -84,6 +87,7 @@ public function testProcessThrowAnExceptionIfTheServiceIsNotASubclassOfCommand()
8487
public function testHttpKernelRegisterCommandsIngoreCommandAsAService()
8588
{
8689
$container = new ContainerBuilder();
90+
$container->setResourceTracking(false);
8791
$container->addCompilerPass(new AddConsoleCommandPass());
8892
$definition = new Definition('Symfony\Component\Console\Tests\DependencyInjection\MyCommand');
8993
$definition->addTag('console.command');

0 commit comments

Comments
 (0)
0