File "IsAnythingTest.php"

Full Path: /home/clickysoft/public_html/jmapi5.clickysoft.net/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsAnythingTest.php
File size: 684 bytes
MIME-type: text/x-php
Charset: utf-8

<?php
namespace Hamcrest\Core;

class IsAnythingTest extends \Hamcrest\AbstractMatcherTest
{

    protected function createMatcher()
    {
        return \Hamcrest\Core\IsAnything::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));
    }
}