Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Test_Application.php « Test « PhpSecInfo « SecurityInfo « plugins - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: af7a2f992603836964bfc6ad820fe988b4b7a778 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
/**
 * Skeleton Test class file for Application group
 * 
 * @package PhpSecInfo
 * @author Anthon Pang
 */

/**
 * require the main PhpSecInfo class
 */
require_once(PHPSECINFO_BASE_DIR.'/Test/Test.php');



/**
 * This is a skeleton class for PhpSecInfo "Application" tests
 * @package PhpSecInfo
 */
class PhpSecInfo_Test_Application extends PhpSecInfo_Test
{
	
	/**
	 * This value is used to group test results together.
	 * 
	 * For example, all tests related to the mysql lib should be grouped under "mysql."
	 *
	 * @var string
	 */
	var $test_group = 'Application';
	
	
	/**
	 * "Application" tests should pretty much be always testable, so the default is just to return true
	 * 
	 * @return boolean
	 */
	function isTestable() {
		return Piwik_Http::getTransportMethod() !== null;
	}

	function getMoreInfoURL() {
		$urls = array(
			'Piwik' => 'http://piwik.org/changelog',
			'PHP' => 'http://php.net/',
		);

		if ($tn = $this->getTestName()) {
			return $urls[$tn];
		} else {
			return false;
		}
	}
}