function PoStreamWriterTest::testGetUriException

@covers ::getURI

File

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

Class

PoStreamWriterTest
@coversDefaultClass \Drupal\Component\Gettext\PoStreamWriter[[api-linebreak]] @group Gettext

Namespace

Drupal\Tests\Component\Gettext

Code

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

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