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