protected function ProjectServiceContainer::getThrowsExceptionOnServiceConfigurationService in Service Container 7.2
Same name and namespace in other branches
- 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
Namespace
Symfony\Component\DependencyInjection\TestsCode
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!');
}