You are here

public function StringObject::__toString in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php \Drupal\Tests\Component\Assertion\StringObject::__toString()
  2. 9 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';
}