You are here

protected function PoStreamWriterTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Component/Gettext/PoStreamWriterTest.php \Drupal\Tests\Component\Gettext\PoStreamWriterTest::setUp()

File

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

Class

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

Namespace

Drupal\Tests\Component\Gettext

Code

protected function setUp() : void {
  parent::setUp();
  $this->poWriter = new PoStreamWriter();
  $root = vfsStream::setup();
  $this->poFile = new vfsStreamFile('powriter.po');
  $root
    ->addChild($this->poFile);
}