function testCallbackExceptionWithObject()
 {
     $this->setExpectedException('Functional\\Exceptions\\InvalidArgumentException', 'func() expected parameter 1 to be a valid callback, no array, string, closure or functor given');
     InvalidArgumentException::assertCallback(new \stdClass(), 'func', 1);
 }