class AssertHelperTestClass

Same name in other branches
  1. 8.9.x 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

Title Sort descending Deprecated Modifiers Object type Summary
AssertHelperTestClass::testMethod public function
AssertHelperTrait::castSafeStrings Deprecated protected static function Casts MarkupInterface objects into strings.

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