function FormattableMarkupTest::testNullPlaceholder

Same name in other branches
  1. 10 core/tests/Drupal/Tests/Component/Render/FormattableMarkupTest.php \Drupal\Tests\Component\Render\FormattableMarkupTest::testNullPlaceholder()

@covers ::__toString @dataProvider providerTestNullPlaceholder @group legacy

File

core/tests/Drupal/Tests/Component/Render/FormattableMarkupTest.php, line 60

Class

FormattableMarkupTest
Tests the TranslatableMarkup class.

Namespace

Drupal\Tests\Component\Render

Code

public function testNullPlaceholder(string $expected, string $string, array $arguments, string $expected_deprecation) : void {
    $this->expectDeprecation($expected_deprecation);
    $this->assertEquals($expected, (string) new FormattableMarkup($string, $arguments));
}

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