You are here

public function ClassWithToString::__toString in Zircon Profile 8

Same name in this branch
  1. 8 vendor/sebastian/comparator/tests/_files/ClassWithToString.php \SebastianBergmann\Comparator\ClassWithToString::__toString()
  2. 8 vendor/phpunit/phpunit/tests/_files/ClassWithToString.php \ClassWithToString::__toString()
Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/tests/_files/ClassWithToString.php \ClassWithToString::__toString()

File

vendor/phpunit/phpunit/tests/_files/ClassWithToString.php, line 18

Class

ClassWithToString
A class with a __toString() method.

Code

public function __toString() {
  return 'string representation';
}