public function testCallbackExceptionWithIncorrectArrayIndex()
{
$this->setExpectedException('Functional\\Exceptions\\InvalidArgumentException', "func() expects parameter 1 to be a valid callback, method 'stdClass->method' not found or invalid method name");
InvalidArgumentException::assertCallback([1 => new \stdClass(), 2 => 'method'], 'func', 1);
}