You are here

protected function ProjectServiceContainer::getThrowsExceptionOnServiceConfigurationService in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/dependency-injection/Tests/ContainerTest.php \Symfony\Component\DependencyInjection\Tests\ProjectServiceContainer::getThrowsExceptionOnServiceConfigurationService()

File

vendor/symfony/dependency-injection/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!');
}