public function PhpDumperTest::testAddServiceInvalidServiceId in Zircon Profile 8
Same name and namespace in other branches
- 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
Namespace
Symfony\Component\DependencyInjection\Tests\DumperCode
public function testAddServiceInvalidServiceId() {
$container = new ContainerBuilder();
$container
->register('bar$', 'FooClass');
$dumper = new PhpDumper($container);
$dumper
->dump();
}