Вход Регистрация
Файл: gapps/vendor/hamcrest/hamcrest-php/tests/Hamcrest/BaseMatcherTest.php
Строк: 20
<?php
namespace Hamcrest;

/* Test-specific subclass only */
class BaseMatcherTest extends HamcrestBaseMatcher
{

    public function 
matches($item)
    {
        throw new 
RuntimeException();
    }

    public function 
describeTo(HamcrestDescription $description)
    {
        
$description->appendText('SOME DESCRIPTION');
    }

    public function 
testDescribesItselfWithToStringMethod()
    {
        
$someMatcher = new HamcrestSomeMatcher();
        
$this->assertEquals('SOME DESCRIPTION', (string) $someMatcher);
    }
}
Онлайн: 1
Реклама