Functional\Tests\WithTest::testPassNonCallable PHP Method

testPassNonCallable() public method

public testPassNonCallable ( )
    public function testPassNonCallable()
    {
        $this->expectArgumentError("Argument 2 passed to Functional\\with() must be callable");
        with(null, 'undefinedFunction');
    }