class StringObject in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php \Drupal\Tests\Component\Assertion\StringObject
- 9 core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php \Drupal\Tests\Component\Assertion\StringObject
Quick class for testing for objects with __toString.
Hierarchy
- class \Drupal\Tests\Component\Assertion\StringObject
Expanded class hierarchy of StringObject
File
- core/
tests/ Drupal/ Tests/ Component/ Assertion/ InspectorTest.php, line 258 - Contains \Drupal\Tests\Component\Assertion\InspectorTest.
Namespace
Drupal\Tests\Component\AssertionView source
class StringObject {
/**
* {@inheritdoc}
*/
public function __toString() {
return 'foo';
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
StringObject:: |
public | function |