load() public method

The new suite is composed into this one.
public load ( string $test_file ) : TestSuite
$test_file string File name of library with test case classes.
return TestSuite The new test suite.
コード例 #1
0
ファイル: test_case.php プロジェクト: nuckey/moodle
 /**
  *    Builds a test suite from a library of test cases.
  *    The new suite is composed into this one.
  *    @param string $test_file        File name of library with
  *                                    test case classes.
  *    @access public
  */
 function addFile($test_file) {
     $extractor = new SimpleFileLoader();
     $this->add($extractor->load($test_file));
 }