You are here

class StringObject in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php \Drupal\Tests\Component\Assertion\StringObject

Quick class for testing for objects with __toString.

Hierarchy

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\Assertion
View source
class StringObject {

  /**
   * {@inheritdoc}
   */
  public function __toString() {
    return 'foo';
  }

}

Members