You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
535 B
23 lines
535 B
<?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); |
|
} |
|
}
|
|
|