KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.41 (Ubuntu)
System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64
User : www-data ( 33)
PHP Version : 8.2.12
Disable Function : NONE
Directory :  /var/www/nikkilgupta.edukrypt.in/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/nikkilgupta.edukrypt.in/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsIntegerTest.php
<?php
namespace Hamcrest\Type;

class IsIntegerTest extends \Hamcrest\AbstractMatcherTest
{

    protected function createMatcher()
    {
        return \Hamcrest\Type\IsInteger::integerValue();
    }

    public function testEvaluatesToTrueIfArgumentMatchesType()
    {
        assertThat(5, integerValue());
        assertThat(0, integerValue());
        assertThat(-5, integerValue());
    }

    public function testEvaluatesToFalseIfArgumentDoesntMatchType()
    {
        assertThat(false, not(integerValue()));
        assertThat(5.2, not(integerValue()));
        assertThat('foo', not(integerValue()));
    }

    public function testHasAReadableDescription()
    {
        $this->assertDescription('an integer', integerValue());
    }

    public function testDecribesActualTypeInMismatchMessage()
    {
        $this->assertMismatchDescription('was null', integerValue(), null);
        $this->assertMismatchDescription('was a string "foo"', integerValue(), 'foo');
    }
}

Anon7 - 2021