function PoStreamWriterTest::testGetUriException

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Component/Gettext/PoStreamWriterTest.php \Drupal\Tests\Component\Gettext\PoStreamWriterTest::testGetUriException()
  2. 8.9.x core/tests/Drupal/Tests/Component/Gettext/PoStreamWriterTest.php \Drupal\Tests\Component\Gettext\PoStreamWriterTest::testGetUriException()
  3. 10 core/tests/Drupal/Tests/Component/Gettext/PoStreamWriterTest.php \Drupal\Tests\Component\Gettext\PoStreamWriterTest::testGetUriException()

@covers ::getURI

File

core/tests/Drupal/Tests/Component/Gettext/PoStreamWriterTest.php, line 56

Class

PoStreamWriterTest
@coversDefaultClass \Drupal\Component\Gettext\PoStreamWriter @group Gettext

Namespace

Drupal\Tests\Component\Gettext

Code

public function testGetUriException() : void {
    $this->expectException(\Exception::class);
    $this->expectExceptionMessage('No URI set.');
    $this->poWriter
        ->getURI();
}

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