function AssertHelperTraitTest::testCastSafeStrings

Same name in other branches
  1. 9 core/tests/Drupal/Tests/AssertHelperTraitTest.php \Drupal\Tests\AssertHelperTraitTest::testCastSafeStrings()

@covers ::castSafeStrings @dataProvider providerCastSafeStrings

File

core/tests/Drupal/Tests/AssertHelperTraitTest.php, line 18

Class

AssertHelperTraitTest
@coversDefaultClass \Drupal\Tests\AssertHelperTrait @group simpletest @group Tests

Namespace

Drupal\Tests

Code

public function testCastSafeStrings($expected, $value) {
    $class = new AssertHelperTestClass();
    $this->assertSame($expected, $class->testMethod($value));
}

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