[ Index ]

PHP Cross Reference of Moodle 1.9.3 [Build 15-Oct-2008]

title

Body

[close]

/admin/report/simpletest/ -> ex_simple_test.php (summary)

A SimpleTest GroupTest that automatically finds all the test files in a directory tree according to certain rules.

Author: N.D.Freear@open.ac.uk, T.J.Hunt@open.ac.uk
Copyright: © 2006 The Open University
License: http://www.gnu.org/copyleft/gpl.html GNU Public License
Version: $Id$
File Size: 210 lines (6 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 7 classes

AutoGroupTest:: (7 methods):
  AutoGroupTest()
  setLabel()
  addIgnoreFolder()
  _recurseFolders()
  findTestFiles()
  addTestFile()
  get_class_ex()

BadTest:: (4 methods):
  BadTest()
  getLabel()
  run()
  getSize()

Notice:: (4 methods):
  Notice()
  getLabel()
  run()
  getSize()

BadFolderTest:: (0 methods):

BadAutoGroupTest:: (0 methods):

AutoGroupTestNotice:: (0 methods):

FindFileNotice:: (0 methods):


Class: AutoGroupTest  - X-Ref

This is a composite test class for finding test cases and
other RunnableTest classes in a directory tree and combining
them into a group test.

AutoGroupTest($showsearch, $thorough, $test_name = null)   X-Ref
No description

setLabel($test_name)   X-Ref
No description

addIgnoreFolder($ignorefolder)   X-Ref
No description

_recurseFolders($path)   X-Ref
No description

findTestFiles($dir)   X-Ref
No description

addTestFile($file, $internalcall = false)   X-Ref
No description

get_class_ex($object)   X-Ref
No description

Class: BadTest  - X-Ref

A failing test base-class for when a test suite has NOT loaded properly.
See class, simple_test.php: BadGroupTest.

BadTest($label, $error)   X-Ref
No description

getLabel()   X-Ref
No description

run(&$reporter)   X-Ref
No description

getSize()   X-Ref

return: int the number of test cases starting.

Class: Notice  - X-Ref

An informational notice base-class for when a test suite is being processed.
See class, simple_test.php: BadGroupTest.

Notice($label, $error)   X-Ref
No description

getLabel()   X-Ref
No description

run(&$reporter)   X-Ref
No description

getSize()   X-Ref
No description

Class: BadFolderTest  - X-Ref

A failing folder test for when the test-user specifies an invalid directory
(run.php?folder=woops).

Class: BadAutoGroupTest  - X-Ref

A failing auto test for when no unit test files are found.

Class: AutoGroupTestNotice  - X-Ref

Auto group test notices - 1. Search complete. 2. A test file has been found.

Class: FindFileNotice  - X-Ref



Generated: Wed Jan 14 11:33:29 2009 Cross-referenced by PHPXref 0.7