summaryrefslogtreecommitdiff
path: root/tests/test_tools/simpletest/simpletest.php
diff options
context:
space:
mode:
authorxue <>2006-12-01 12:28:55 +0000
committerxue <>2006-12-01 12:28:55 +0000
commit17f49a9bc71d88c9b3e2f31a161f3689c136ac16 (patch)
treefc77b9c75927cd56281417843a318e85c39ce729 /tests/test_tools/simpletest/simpletest.php
parent074032e0270ae70eed481a082158dc9554aaa1db (diff)
merge from 3.0 branch till 1531.
Diffstat (limited to 'tests/test_tools/simpletest/simpletest.php')
-rw-r--r--tests/test_tools/simpletest/simpletest.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/test_tools/simpletest/simpletest.php b/tests/test_tools/simpletest/simpletest.php
index d2a56d26..fe4937b3 100644
--- a/tests/test_tools/simpletest/simpletest.php
+++ b/tests/test_tools/simpletest/simpletest.php
@@ -31,7 +31,7 @@
* @static
* @access public
*/
- function getVersion() {
+ static function getVersion() {
$content = file(dirname(__FILE__) . '/VERSION');
return trim($content[0]);
}
@@ -45,7 +45,7 @@
* @static
* @access public
*/
- function ignore($class) {
+ static function ignore($class) {
$registry = &SimpleTest::_getRegistry();
$registry['IgnoreList'][strtolower($class)] = true;
}
@@ -65,7 +65,7 @@
* @static
* @access public
*/
- function ignoreParentsIfIgnored($classes) {
+ static function ignoreParentsIfIgnored($classes) {
$registry = &SimpleTest::_getRegistry();
foreach ($classes as $class) {
if (SimpleTest::isIgnored($class)) {
@@ -88,7 +88,7 @@
* @access public
* @static
*/
- function isIgnored($class) {
+ static function isIgnored($class) {
$registry = &SimpleTest::_getRegistry();
return isset($registry['IgnoreList'][strtolower($class)]);
}
@@ -164,7 +164,7 @@
* @access public
* @static
*/
- function setCurrent($test) {
+ static function setCurrent($test) {
$registry = &SimpleTest::_getRegistry();
$registry['CurrentTestCase'] = $test;
}
@@ -175,7 +175,7 @@
* @access public
* @static
*/
- function &getCurrent() {
+ static function &getCurrent() {
$registry = &SimpleTest::_getRegistry();
return $registry['CurrentTestCase'];
}
@@ -186,7 +186,7 @@
* @access private
* @static
*/
- function &_getRegistry() {
+ static function &_getRegistry() {
static $registry = false;
if (! $registry) {
$registry = SimpleTest::_getDefaults();
@@ -200,7 +200,7 @@
* @access private
* @static
*/
- function _getDefaults() {
+ static function _getDefaults() {
return array(
'StubBaseClass' => 'SimpleStub',
'MockBaseClass' => 'SimpleMock',
@@ -219,21 +219,21 @@
/**
* @deprecated
*/
- function getVersion() {
+ static function getVersion() {
return Simpletest::getVersion();
}
/**
* @deprecated
*/
- function ignore($class) {
+ static function ignore($class) {
return Simpletest::ignore($class);
}
/**
* @deprecated
*/
- function isIgnored($class) {
+ static function isIgnored($class) {
return Simpletest::isIgnored($class);
}