You are here

public function ContainerBuilderTest::testSetParameterException in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/DependencyInjection/ContainerBuilderTest.php \Drupal\Tests\Core\DependencyInjection\ContainerBuilderTest::testSetParameterException()

@covers ::setParameter @expectedException \InvalidArgumentException @expectedExceptionMessage Parameter names must be lowercase: Buzz

File

core/tests/Drupal/Tests/Core/DependencyInjection/ContainerBuilderTest.php, line 58
Contains \Drupal\Tests\Core\DependencyInjection\ContainerBuilderTest.

Class

ContainerBuilderTest
@coversDefaultClass \Drupal\Core\DependencyInjection\ContainerBuilder @group DependencyInjection

Namespace

Drupal\Tests\Core\DependencyInjection

Code

public function testSetParameterException() {
  $container = new ContainerBuilder();
  $container
    ->setParameter('Buzz', 'buzz');
}