WP File Manager
Current Path:
/
home
/
itutorethiopia
/
public_html
/
vendor
/
hamcrest
/
hamcrest-php
/
tests
/
Hamcrest
/
Name
Action
..
AbstractMatcherTest.php
Edit
Array
BaseMatcherTest.php
Edit
Collection
Core
FeatureMatcherTest.php
Edit
MatcherAssertTest.php
Edit
Number
StringDescriptionTest.php
Edit
Text
Type
UtilTest.php
Edit
Xml
Editing: BaseMatcherTest.php
<?php namespace Hamcrest; /* Test-specific subclass only */ class BaseMatcherTest extends \Hamcrest\BaseMatcher { public function matches($item) { throw new \RuntimeException(); } public function describeTo(\Hamcrest\Description $description) { $description->appendText('SOME DESCRIPTION'); } public function testDescribesItselfWithToStringMethod() { $someMatcher = new \Hamcrest\SomeMatcher(); $this->assertEquals('SOME DESCRIPTION', (string) $someMatcher); } }