public function ContainerBuilderTest::testRegisterException in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/DependencyInjection/ContainerBuilderTest.php \Drupal\Tests\Core\DependencyInjection\ContainerBuilderTest::testRegisterException()
@covers ::register @expectedException \InvalidArgumentException @expectedExceptionMessage Service ID names must be lowercase: Bar
File
- core/
tests/ Drupal/ Tests/ Core/ DependencyInjection/ ContainerBuilderTest.php, line 68 - Contains \Drupal\Tests\Core\DependencyInjection\ContainerBuilderTest.
Class
- ContainerBuilderTest
- @coversDefaultClass \Drupal\Core\DependencyInjection\ContainerBuilder @group DependencyInjection
Namespace
Drupal\Tests\Core\DependencyInjectionCode
public function testRegisterException() {
$container = new ContainerBuilder();
$container
->register('Bar');
}