class 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 261  
Namespace
Drupal\Tests\Component\AssertionView source
class StringObject {
  
  /**
   * {@inheritdoc}
   */
  public function __toString() {
    return 'foo';
  }
}
Members
| Title Sort descending | Modifiers | Object type | Summary | 
|---|---|---|---|
| StringObject::__toString | public | function | 
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.