appendText('SOME DESCRIPTION'); } } class Hamcrest_BaseMatcherTest extends PHPUnit_Framework_TestCase { public function testDescribesItselfWithToStringMethod() { $someMatcher = new Hamcrest_SomeMatcher(); $this->assertEquals('SOME DESCRIPTION', (string) $someMatcher); } }