function ZfExtensionManagerSfContainerTest::testSetStandaloneException

Same name in this branch
  1. 9 core/tests/Drupal/Tests/Component/Bridge/ZfExtensionManagerSfContainerTest.php \Drupal\Tests\Component\Bridge\ZfExtensionManagerSfContainerTest::testSetStandaloneException()
Same name and namespace in other branches
  1. 8.9.x core/tests/Drupal/Tests/Component/Bridge/ZfExtensionManagerSfContainerTest.php \Drupal\Tests\Component\Bridge\ZfExtensionManagerSfContainerTest::testSetStandaloneException()

@covers ::setStandalone

File

core/modules/aggregator/tests/src/Unit/ZfExtensionManagerSfContainerTest.php, line 61

Class

ZfExtensionManagerSfContainerTest
@coversDefaultClass <a href="/api/drupal/core%21modules%21aggregator%21src%21ZfExtensionManagerSfContainer.php/class/ZfExtensionManagerSfContainer/9" title="Defines a bridge between the Laminas service manager to Symfony container." class="local">\Drupal\aggregator\ZfExtensionManagerSfContainer</a> @group aggregator @group legacy

Namespace

Drupal\Tests\aggregator\Unit

Code

public function testSetStandaloneException() {
    $this->expectException(\RuntimeException::class);
    $this->expectExceptionMessage('Drupal\\Tests\\aggregator\\Unit\\ZfExtensionManagerSfContainerTest must implement Laminas\\Feed\\Reader\\ExtensionManagerInterface or Laminas\\Feed\\Writer\\ExtensionManagerInterface');
    $bridge = new ZfExtensionManagerSfContainer();
    $bridge->setStandalone(static::class);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.