Файл: 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(null, anything());
assertThat(new stdClass(), anything());
assertThat('hi', anything());
}
public function testHasUsefulDefaultDescription()
{
$this->assertDescription('ANYTHING', anything());
}
public function testCanOverrideDescription()
{
$description = 'description';
$this->assertDescription($description, anything($description));
}
}