public function StringObject::__toString in Drupal 9
Same name and namespace in other branches
- 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\AssertionCode
public function __toString() {
return 'foo';
}