blob: 7228fde5e0efefc8bdefaa8c503641167478f9a8 (
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
|
<?php
/**
* Skeleton Test class file for Suhosin 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 "Suhosin" tests
* @package PhpSecInfo
*/
class PhpSecInfo_Test_Suhosin 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 = 'Suhosin';
/**
* "Suhosin" tests should pretty much be always testable, so the default is just to return true
*
* @return boolean
*/
function isTestable()
{
if (version_compare(PHP_VERSION, '5.3.9') >= 0) {
return false;
}
return true;
}
function getMoreInfoURL()
{
if ($tn = $this->getTestName()) {
return 'http://www.hardened-php.net/suhosin/index.html';
} else {
return false;
}
}
}
|