Class PT_Tests

Description

Tests available for hplugins.

Located in /pt-tests.php (line 11)


	
			
Method Summary
 PT_Tests __construct ( $file)
 void available ( $type)
 void links (String $type)
 bool load_tests ()
 void run_tests (String $type)
 String setup_tests (String $type)
 void testable ()
Methods
Constructor __construct (line 37)

Constructor. Extracts path data.

Wordpress stores the base file name with folder name appended. If there is no folder name at all, then there are no tests attached at all. TODO Investigate path Structure returned in Windows.

  • access: public
PT_Tests __construct ( $file)
  • $file
available (line 80)

Whether this plugin has any Tests.

  • access: public
void available ( $type)
  • $type
links (line 94)

The link to running a specific set of tests from this plugin.

  • access: public
void links (String $type)
  • String $type: Test Type
load_tests (line 48)

Load all available tests into qUnit and phpUnit tests based on file extension.

  • return: True if any tests are found, false if otherwise
  • access: public
bool load_tests ()
run_tests (line 132)

Routes function to set up actual markup to display the test.

  • access: public
void run_tests (String $type)
  • String $type: Test Type
setup_tests (line 121)

Routes function to set up resources based on test type.

  • return: Test Results
  • see: run_phpUnit
  • see: run_qUnit
  • access: public
String setup_tests (String $type)
  • String $type: Test Type
testable (line 109)

Whether this plugin has any tests at all.

  • access: public
void testable ()

Documentation generated on Thu, 29 Sep 2011 01:44:46 +0530 by phpDocumentor 1.4.3