in reply to Re^2: Where can I buy an $r with which to test Apache2::Cookie?
in thread Where can I buy an $r with which to test Apache2::Cookie?

It's not going to work. Apache2::Cookie and the rest of libapreq are a perl interface to a C data structure provided by apache. It's like trying to test your database without running a database.

If you're determined to test apache without apache, the best you can do is make a mock object of Apache2::Cookie and test that you sent it the right data.

  • Comment on Re^3: Where can I buy an $r with which to test Apache2::Cookie?

Replies are listed 'Best First'.
Re^4: Where can I buy an $r with which to test Apache2::Cookie?
by frostman (Beadle) on Feb 12, 2008 at 21:39 UTC

    Oddly, I think it's working fine with the solution in my last comment.

    I'm determined to test, without apache2, the parts of Apache2::* code that shouldn't need apache2, at least for my private values of $shouldn_t.

    But even if I succeed with ::Cookie, I may well fail elsewhere, and so will keep your warning in mind.