function PoStreamWriterTest::testGetUriException
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Component/Gettext/PoStreamWriterTest.php \Drupal\Tests\Component\Gettext\PoStreamWriterTest::testGetUriException()
- 8.9.x core/tests/Drupal/Tests/Component/Gettext/PoStreamWriterTest.php \Drupal\Tests\Component\Gettext\PoStreamWriterTest::testGetUriException()
- 11.x 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 <a href="/api/drupal/core%21lib%21Drupal%21Component%21Gettext%21PoStreamWriter.php/class/PoStreamWriter/10" title="Defines a Gettext PO stream writer." class="local">\Drupal\Component\Gettext\PoStreamWriter</a> @group Gettext
Namespace
Drupal\Tests\Component\GettextCode
public function testGetUriException() {
$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.