You are here

public function AssertHelperTraitTest::testCastSafeStrings in Drupal 8

Same name and namespace 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));
}