Subversion Repositories ggsysinfo

[/] [modules/] [sysinfo/] [lib/] [PhpSecInfo/] [Test/] [Test_Application.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 Application 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 "Application" tests
18
 * @package PhpSecInfo
19
 */
20
class PhpSecInfo_Test_Application 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 = 'Application';
31
 
32
 
33
        /**
34
         * "Application" tests should pretty much be always testable, so the default is just to return true
35
         *
36
         * @return boolean
37
         */
38
        function isTestable() {
39
////            return Piwik_Http::getTransportMethod() !== null;
40
            return true;
41
 
42
        }
43
 
44
        function getMoreInfoURL() {
45
                $urls = array(
46
////                    'Piwik' => 'http://piwik.org/changelog',
47
            'ggSysInfo' => 'http://projects.ez.no/ggsysinfo',
48
                        'PHP' => 'http://php.net/',
49
                );
50
 
51
                if ($tn = $this->getTestName()) {
52
                        return $urls[$tn];
53
                } else {
54
                        return false;
55
                }
56
        }
57
}