function 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.