Is there a good API that would allow someone to create an object of Apache
class?
The class itself seems to lack a constructor; and synopsis wasn't very helpful. My suspicion is that it's somehow done via sublcass, e.g. Apache::Request
?
The context is I'm trying to write a test for a module which uses Embperl's $HTML::Embperl::req_rec
variable (more specifically, calls the uri()
method on an object contained in it). The variable, upon examination, contains an object with ref($req_rec) eq 'Apache'
.
NOTE: I'm specifically asking about constructing a REAL (though not necessarily fully functional) object. NOT mocking it (which I obviously easily can do and probably will end up doing anyway).