Torsten Foertsch wrote: > Hi, > > while trying out Apache-IncludeHook-2.00_02
I haven't touched that in a while, so if you see it failing to work on newish apache just holler. other than that, I hope you like it :) > I stumbled across the lack of > Apache::Test::have(). hmm... is have() really required? what need() provides is a way to aggregate tests in a single call to plan(), allowing you to see "all skipped - foo not available, bar not available." so you can satisfy all the prerequisites at once so the test file will run. the "foo not available, bar not available" message is aquired because need() populates a global variable behind the scenes and passes that to plan() (in essence anyway). have(), by definition of being a have*() variant, would not manipulate some global variable. so if (have have_cgi, have_php) { ... } would be functionally equivalent to if (have_cgi && have_php) { ... } while the same cannot be said for need() when used in plan(). so, I don't see a compelling reason to add have(). in fact, I think we left it out on purpose if you check the archives. --Geoff