public function PoStreamWriterTest::testCloseException in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Component/Gettext/PoStreamWriterTest.php \Drupal\Tests\Component\Gettext\PoStreamWriterTest::testCloseException()
- 9 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 106
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();
}