Re: Can't addFile() in SimpleTest Test Suite
- From: Jerry Stuckle <jstucklex@xxxxxxxxxxxxx>
- Date: Mon, 29 Sep 2008 16:02:14 -0400
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
==================
.
- Follow-Ups:
- Re: Can't addFile() in SimpleTest Test Suite
- From: Rob Wilkerson
- Re: Can't addFile() in SimpleTest Test Suite
- References:
- Can't addFile() in SimpleTest Test Suite
- From: Rob Wilkerson
- Re: Can't addFile() in SimpleTest Test Suite
- From: Rob Wilkerson
- Re: Can't addFile() in SimpleTest Test Suite
- From: Jerry Stuckle
- Re: Can't addFile() in SimpleTest Test Suite
- From: Rob Wilkerson
- Can't addFile() in SimpleTest Test Suite
- Prev by Date: Re: Manually setting session ids
- Next by Date: Re: include_once() and require_once() in function
- Previous by thread: Re: Can't addFile() in SimpleTest Test Suite
- Next by thread: Re: Can't addFile() in SimpleTest Test Suite
- Index(es):
Relevant Pages
|