You are here

public function AssertHelperTraitTest::testCastSafeStrings in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/simpletest/tests/src/Unit/AssertHelperTraitTest.php \Drupal\Tests\simpletest\Unit\AssertHelperTraitTest::testCastSafeStrings()

@covers ::castSafeStrings @dataProvider providerCastSafeStrings

File

core/modules/simpletest/tests/src/Unit/AssertHelperTraitTest.php, line 24
Contains \Drupal\Tests\simpletest\Unit\AssertHelperTraitTest.

Class

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

Namespace

Drupal\Tests\simpletest\Unit

Code

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