NsplTest\ArgsTest::testExpectsCustom_Positive PHP Method

testExpectsCustom_Positive() public method

    public function testExpectsCustom_Positive()
    {
        function expectsCustomPositiveTest($arg1)
        {
            expectsToBe($arg1, 'to be a positive integer', function ($arg) {
                return is_int($arg) && $arg > 0;
            });
        }
        $this->assertNull(expectsCustomPositiveTest(42));
    }
ArgsTest