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

class 
IsAnythingTest extends HamcrestAbstractMatcherTest
{

    protected function 
createMatcher()
    {
        return 
HamcrestCoreIsAnything::anything();
    }

    public function 
testAlwaysEvaluatesToTrue()
    {
        
assertThat(nullanything());
        
assertThat(new stdClass(), anything());
        
assertThat('hi'anything());
    }

    public function 
testHasUsefulDefaultDescription()
    {
        
$this->assertDescription('ANYTHING'anything());
    }

    public function 
testCanOverrideDescription()
    {
        
$description 'description';
        
$this->assertDescription($descriptionanything($description));
    }
}
Онлайн: 1
Реклама