NsplTest\ArgsTest::testExpectsCustom_Negative PHP Метод

testExpectsCustom_Negative() публичный Метод

    public function testExpectsCustom_Negative()
    {
        function expectsCustomNegativeTest($arg1)
        {
            expectsToBe($arg1, 'a positive integer', function ($arg) {
                return is_int($arg) && $arg > 0;
            });
        }
        $this->assertNull(expectsCustomNegativeTest(-1));
    }
ArgsTest