Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions tests/Hamcrest/StringDescriptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,10 @@ public function testSelfDescribingObjectsCanBeAppendedAsIterators()
$this->_description->appendList('@start@', '@sep@ ', '@end@', $items->getIterator());
$this->assertEquals('@start@foo@sep@ bar@end@', (string) $this->_description);
}

public function testToStringAppendsSelfDescribing()
{
$description = $this->_description->toString(new \Hamcrest\SampleSelfDescriber('foo'));
$this->assertEquals('foo', $description);
}
}