Functional\Tests\InvokerTest::testInvalidMethod PHP Method

testInvalidMethod() public method

public testInvalidMethod ( )
    public function testInvalidMethod()
    {
        if (!class_exists('Error')) {
            $this->markTestSkipped('Requires PHP 7');
        }
        $fn = invoker('undefinedMethod');
        $this->expectException('Error', 'Call to undefined method Functional\\Tests\\InvokerTest::undefinedMethod');
        $fn($this);
    }