function StringObject::__toString

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php \Drupal\Tests\Component\Assertion\StringObject::__toString()
  2. 8.9.x core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php \Drupal\Tests\Component\Assertion\StringObject::__toString()
  3. 11.x core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php \Drupal\Tests\Component\Assertion\StringObject::__toString()

File

core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php, line 266

Class

StringObject
Quick class for testing for objects with __toString.

Namespace

Drupal\Tests\Component\Assertion

Code

public function __toString() {
    return 'foo';
}

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