Re: Can't addFile() in SimpleTest Test Suite



Rob Wilkerson wrote:
On Sep 29, 1:51 pm, Jerry Stuckle <jstuck...@xxxxxxxxxxxxx> wrote:
Use a relative path based off of the website root directory, which can
be found in $_SERVER['DOCUMENT_ROOT'].

Thanks, Jerry. That worked of course:

$this->addFile( $_SERVER['DOCUMENT_ROOT'] . '/my_test_case.php' );

Is this pretty much the "standard" way of including files in a test
suite?


It's the way I do it - and a lot of other people I know. It makes things easier - you can include the file without worrying about what directory the including file is in.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================

.



Relevant Pages

  • Re: Converting from one version to another
    ... You can't covert one suite with the key from another suite. ... Standard suite has Outlook and the Home and Student suite doesn't -- they ... Microsoft office standard across the top and down to the right it says, ...
    (microsoft.public.word.docmanagement)
  • Re: De Visees Suite in d minor
    ... The French dance suite rarely contained the standardized series of dance ... movement sequence (which is actually first found in embryonic form in the ... general history writers to regard it as the standard for the period. ... for keyboard, ensemble, theorbo or guitar, is a different story. ...
    (rec.music.classical.guitar)
  • Re: Need suggestions for C links.
    ... If it were part of the Standard, a validation suite wouldn't require ... I wouldn't want the suite to be part of the standard. ... as Chris Hills points out there are several commercial suites in ...
    (comp.lang.c)
  • Re: This newsgroup
    ... Isn't this a ballsup by Microsoft, in my firm most users have standard edition as they do not require Access. ... In reallity, there a much less users who bought MS Office app individually than uses who have Office2003 suite, be is Standard suite or Pro suite. ... Yes, VSTO project only works with Office 2003 Pro and individual lisenced app, not the Standard suite, which are used by most users. ...
    (microsoft.public.vsnet.vstools.office)
  • Re: Why no folder manipulation in Std C
    ... implementations and pointing to the standard to prove that they're ... conforming, I'd say it was worth the effort. ... there's a large validation test suite (several ... thousand test programs) for Ada, developed along with the Ada standard ...
    (comp.std.c)