You are here

class AssertHelperTestClass in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/AssertHelperTraitTest.php \Drupal\Tests\AssertHelperTestClass

A helper class for deprecation of AssertHelperTrait.

@todo remove this class in Drupal 10.

@internal

Hierarchy

Expanded class hierarchy of AssertHelperTestClass

File

core/tests/fixtures/AssertHelperTestClass.php, line 12

Namespace

Drupal\Tests
View source
class AssertHelperTestClass {
  use AssertHelperTrait;
  public function testMethod($value) {
    return $this
      ->castSafeStrings($value);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
AssertHelperTestClass::testMethod public function
AssertHelperTrait::castSafeStrings Deprecated protected static function Casts MarkupInterface objects into strings.