function PoStreamWriterTest::testCloseException
Same name in other branches
- 9 core/tests/Drupal/Tests/Component/Gettext/PoStreamWriterTest.php \Drupal\Tests\Component\Gettext\PoStreamWriterTest::testCloseException()
- 10 core/tests/Drupal/Tests/Component/Gettext/PoStreamWriterTest.php \Drupal\Tests\Component\Gettext\PoStreamWriterTest::testCloseException()
- 11.x core/tests/Drupal/Tests/Component/Gettext/PoStreamWriterTest.php \Drupal\Tests\Component\Gettext\PoStreamWriterTest::testCloseException()
@covers ::close
File
-
core/
tests/ Drupal/ Tests/ Component/ Gettext/ PoStreamWriterTest.php, line 97
Class
- PoStreamWriterTest
- @coversDefaultClass \Drupal\Component\Gettext\PoStreamWriter @group Gettext
Namespace
Drupal\Tests\Component\GettextCode
public function testCloseException() {
$this->expectException(\Exception::class, 'Cannot close stream that is not open.');
$this->poWriter
->close();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.