You are here

public function StringObject::__toString in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php \Drupal\Tests\Component\Assertion\StringObject::__toString()

File

core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php, line 263
Contains \Drupal\Tests\Component\Assertion\InspectorTest.

Class

StringObject
Quick class for testing for objects with __toString.

Namespace

Drupal\Tests\Component\Assertion

Code

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