You are here

public function PoStreamWriterTest::testGetUriException in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Component/Gettext/PoStreamWriterTest.php \Drupal\Tests\Component\Gettext\PoStreamWriterTest::testGetUriException()
  2. 9 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 54

Class

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

Namespace

Drupal\Tests\Component\Gettext

Code

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