Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 014c9eb

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

File tree

1 file changed

+4
-0
lines changed
Filter options

1 file changed

+4
-0
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Tests/DependencyInjection/AddConsoleCommandPassTest.php
+4Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.