function testExceptionIfInvalidMethodName()
 {
     $this->setExpectedException('Functional\\Exceptions\\InvalidArgumentException', 'foo() expects parameter 2 to be string, object given');
     InvalidArgumentException::assertMethodName(new \stdClass(), "foo", 2);
 }