function ZfExtensionManagerSfContainerTest::testGetContainerException
@covers ::get
      
    
File
- 
              core/modules/ aggregator/ tests/ src/ Unit/ ZfExtensionManagerSfContainerTest.php, line 71 
Class
- ZfExtensionManagerSfContainerTest
- @coversDefaultClass \Drupal\aggregator\ZfExtensionManagerSfContainer[[api-linebreak]] @group aggregator @group legacy
Namespace
Drupal\Tests\aggregator\UnitCode
public function testGetContainerException() {
  $this->expectException(ServiceNotFoundException::class);
  $this->expectExceptionMessage('You have requested a non-existent service "test.foo".');
  $container = new ContainerBuilder();
  $bridge = new ZfExtensionManagerSfContainer('test.');
  $bridge->setContainer($container);
  $bridge->setStandalone(StandaloneExtensionManager::class);
  $bridge->get('foo');
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
