Re: Can't addFile() in SimpleTest Test Suite
- From: Rob Wilkerson <rob@xxxxxxxxxxxxxxxx>
- Date: Mon, 29 Sep 2008 11:53:21 -0700 (PDT)
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?
.
- Follow-Ups:
- Re: Can't addFile() in SimpleTest Test Suite
- From: Jerry Stuckle
- 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
- Can't addFile() in SimpleTest Test Suite
- Prev by Date: Re: Item changelogs and rollback
- Next by Date: Re: Manually setting session ids
- Previous by thread: Re: Can't addFile() in SimpleTest Test Suite
- Next by thread: Re: Can't addFile() in SimpleTest Test Suite
- Index(es):