Hi, I'm trying to get a test case to work as part of a test suite in simpletest, but I'm not sure how to get the test case to instantiate when I run the test suite. I can run the test case by itself no problem, but running I don't know how to instantiate it in the test suite. Any help is appreciated, thanks.
Here's my testsuite file
<?php
require_once('simpletest/unit_tester.php');
require_once('simpletest/reporter.php');
class FileTestSuite extends TestSuite {
function FileTestSuite() {
$this->TestSuite('All file tests');
$this->addTestFile('fileTest.php'); // how to instantiate class in this file?
}
}
$test = new FileTestSuite();
$test->run(new HtmlReporter());
?>