Subversion Repositories ggsysinfo

[/] [modules/] [sysinfo/] [lib/] [PhpSecInfo/] [Test/] [Test_Suhosin.php] - Blame information for rev 123

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 123 gg
<?php
2
/**
3
 * Skeleton Test class file for Suhosin group
4
 *
5
 * @package PhpSecInfo
6
 * @author Anthon Pang
7
 */
8
 
9
/**
10
 * require the main PhpSecInfo class
11
 */
12
require_once(PHPSECINFO_BASE_DIR.'/Test/Test.php');
13
 
14
 
15
 
16
/**
17
 * This is a skeleton class for PhpSecInfo "Suhosin" tests
18
 * @package PhpSecInfo
19
 */
20
class PhpSecInfo_Test_Suhosin extends PhpSecInfo_Test
21
{
22
 
23
        /**
24
         * This value is used to group test results together.
25
         *
26
         * For example, all tests related to the mysql lib should be grouped under "mysql."
27
         *
28
         * @var string
29
         */
30
        var $test_group = 'Suhosin';
31
 
32
 
33
        /**
34
         * "Suhosin" tests should pretty much be always testable, so the default is just to return true
35
         *
36
         * @return boolean
37
         */
38
        function isTestable() {
39
 
40
                return true;
41
        }
42
 
43
        function getMoreInfoURL() {
44
                if ($tn = $this->getTestName()) {
45
                        return 'http://www.hardened-php.net/suhosin/index.html';
46
                } else {
47
                        return false;
48
                }
49
        }
50
}