1: <?php
2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12:
13: class Wicked_Test extends Horde_Test
14: {
15: 16: 17: 18: 19:
20: protected $_moduleList = array();
21:
22: 23: 24: 25: 26:
27: protected $_settingsList = array();
28:
29: 30: 31: 32: 33:
34: protected $_pearList = array(
35: 'Text_Wiki' => array(
36: 'error' => 'The Text_Wiki module is required to parse and render the wiki markup in Wicked.',
37: 'required' => true,
38: 'function' => '_checkPearTextWikiVersion'
39: ),
40: 'Text_Wiki_Creole' => array(
41: 'error' => 'The Text_Wiki_Creole module is required if you plan on using Creole formatting.',
42: 'required' => false,
43: ),
44: 'Text_Wiki_Mediawiki' => array(
45: 'error' => 'The Text_Wiki_Mediawiki module is required if you plan on using Mediawiki formatting.',
46: 'required' => false,
47: ),
48: 'Text_Wiki_Tiki' => array(
49: 'error' => 'The Text_Wiki_Tiki module is required if you plan on using Tiki formatting.',
50: 'required' => false,
51: ),
52: );
53:
54: 55: 56: 57: 58:
59: protected $_fileList = array(
60: 'config/conf.php' => null,
61: );
62:
63: 64: 65: 66: 67:
68: protected $_appList = array();
69:
70: 71: 72: 73: 74:
75: protected function _checkPearTextWikiVersion()
76: {
77: if (!is_callable(array('Text_Wiki', 'setRenderConf'))) {
78: return 'Your version of Text_Wiki is not recent enough.';
79: }
80: }
81:
82: 83: 84: 85: 86:
87: public function appTests()
88: {
89: }
90:
91: }
92: