first commit
This commit is contained in:
23
vendor/hamcrest/hamcrest-php/tests/Hamcrest/BaseMatcherTest.php
vendored
Normal file
23
vendor/hamcrest/hamcrest-php/tests/Hamcrest/BaseMatcherTest.php
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user