You are here

public function ZfExtensionManagerSfContainerTest::testSetStandaloneException in Drupal 8

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

@covers ::setStandalone

File

core/tests/Drupal/Tests/Component/Bridge/ZfExtensionManagerSfContainerTest.php, line 60

Class

ZfExtensionManagerSfContainerTest
@coversDefaultClass \Drupal\Component\Bridge\ZfExtensionManagerSfContainer @group Bridge

Namespace

Drupal\Tests\Component\Bridge

Code

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