Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

Well, I've done some more digging, even up to creating a new catalyst project to see if I can figure out where the conflict occurs by adding stuff instead of commenting them out.

I finally decided that the problem was not FormFu, but Test::MockObject. While tests where I had Test::WWW::Mechanize::Catalyst and Test::MockObject (but not FormFu) passed, if I tried to enter them with a debugger, allocating the mech object crashed.

So I tried getting rid of Test::MockObject, and considering I only needed to mock a single method, I was able to do it with an assignment to %INC and a sub MyApp::Foo::Bar {...} declaration.

I'll see if I can do all the tests I need in conjunction with Catalyst modules without using MockObject.

But I want to thank the people who drew my attention to FormHandler. I may not use it in this project, but I think I'm going to use it in something soon...

In reply to Re: Catalyst + FormFu + Test::WWW::Mechanize::Catalyst = Kablooey by matija
in thread Catalyst + FormFu + Test::WWW::Mechanize::Catalyst = Kablooey by matija

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2021-11-28 09:46 GMT
Find Nodes?
    Voting Booth?

    No recent polls found