You are here

protected function ProjectServiceContainer::getThrowsExceptionOnServiceConfigurationService in Service Container 7.2

Same name and namespace in other branches
  1. 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/ContainerTest.php \Symfony\Component\DependencyInjection\Tests\ProjectServiceContainer::getThrowsExceptionOnServiceConfigurationService()

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/ContainerTest.php, line 707

Class

ProjectServiceContainer

Namespace

Symfony\Component\DependencyInjection\Tests

Code

protected function getThrowsExceptionOnServiceConfigurationService() {
  $this->services['throws_exception_on_service_configuration'] = $instance = new \stdClass();
  throw new \Exception('Something was terribly wrong while trying to configure the service!');
}