bakalarska_praca/database/vendor/hamcrest/hamcrest-php/tests/Hamcrest/BaseMatcherTest.php

24 lines
535 B
PHP
Raw Permalink Normal View History

2023-05-11 19:57:12 +00:00
<?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);
}
}