public function testInvalidParamError() { $this->createMethodBuilder('test')->addParam(new Node\Name('foo')); }