You are here

public function PhpDumperTest::testAddServiceInvalidServiceId in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/dependency-injection/Tests/Dumper/PhpDumperTest.php \Symfony\Component\DependencyInjection\Tests\Dumper\PhpDumperTest::testAddServiceInvalidServiceId()

@expectedException \InvalidArgumentException @expectedExceptionMessage Service id "bar$" cannot be converted to a valid PHP method name.

File

vendor/symfony/dependency-injection/Tests/Dumper/PhpDumperTest.php, line 149

Class

PhpDumperTest

Namespace

Symfony\Component\DependencyInjection\Tests\Dumper

Code

public function testAddServiceInvalidServiceId() {
  $container = new ContainerBuilder();
  $container
    ->register('bar$', 'FooClass');
  $dumper = new PhpDumper($container);
  $dumper
    ->dump();
}