testPhpVersion.php
1.07 KB
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
require_once (KT_DIR . '/tests/test.php');
require_once (KT_DIR . '/setup//wizard/share/wizardBase.php');
require_once (KT_DIR . '/setup/wizard/installUtil.php');
require_once (KT_DIR . '/setup/wizard/step.php');
require_once (KT_DIR . '/setup/wizard/steps/dependencies.php');
/**
* These are the unit tests for the KT environment
*
* This test can be run at any time to ensure the environment meets the requirements
* to properly run knowledgetree e.g. http://localhost/tests/env.php
*
*/
class EnvPhpVersionTestCase extends KTUnitTestCase {
/**
* @var oDepends
*/
var $oDepends;
/**
* @var phpVersion
*/
var $phpVersion;
/**
* Setup
*
*/
function setUp() {
$this->oDepends = new dependencies();
}
/**
* Cleanup
*
*/
function tearDown() {
$this->oDepends = null;
}
/**
* Testing PHP Version
*/
function testPhpVersion()
{
$this->phpVersion = $this->oDepends->checkPhpVersion();
$this->assertEqual($this->phpVersion['class'], 'tick');
}
}
?>