I doubt that Test::MockObject will handle exporting the constants for you. You might want to look at Test::MockModule which IIRC allows you to override module subroutines selectively, which might allow you to just override OK and nothing else (although I am not sure that is really what you are looking for here). Apache::Constants is an XS module, so it's internals may not be so easily manipulated.
In reply to Re: Mocking Apache::Constants
by stvn
in thread Mocking Apache::Constants
by Herkum
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |