Skip to content

Commit 8d7b959

Browse files
[WebServerBundle] fix test
1 parent 4baf968 commit 8d7b959

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Bundle/WebServerBundle/Tests/DependencyInjection/WebServerExtensionTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace Symfony\Bundle\WebServerBundle\Tests\DependencyInjection;
1313

1414
use PHPUnit\Framework\TestCase;
15+
use Symfony\Bridge\Monolog\Formatter\ConsoleFormatter;
1516
use Symfony\Bundle\WebServerBundle\DependencyInjection\WebServerExtension;
1617
use Symfony\Component\DependencyInjection\ContainerBuilder;
1718

@@ -26,6 +27,6 @@ public function testLoad()
2627
$this->assertTrue($container->hasDefinition('web_server.command.server_start'));
2728
$this->assertTrue($container->hasDefinition('web_server.command.server_stop'));
2829
$this->assertTrue($container->hasDefinition('web_server.command.server_status'));
29-
$this->assertTrue($container->hasDefinition('web_server.command.server_log'));
30+
$this->assertSame(class_exists(ConsoleFormatter::class), $container->hasDefinition('web_server.command.server_log'));
3031
}
3132
}

0 commit comments

Comments
 (0)