summaryrefslogtreecommitdiff
path: root/modules/php
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-03-31 01:49:55 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-03-31 01:49:55 +0000
commitf40532da769cd1dd551a42bec64dbb1aff240099 (patch)
tree988da5abd5f1604ea59cccea4747dc124cccfb95 /modules/php
parent5cc1704a3f23cdef051fbd74bb6532f4dc3800d4 (diff)
downloadbrdo-f40532da769cd1dd551a42bec64dbb1aff240099.tar.gz
brdo-f40532da769cd1dd551a42bec64dbb1aff240099.tar.bz2
#376129 by boombatower, Damien Tournoud, and chx: Change getInfo() to a static method to reduce memory footprint of SimpleTest.
Diffstat (limited to 'modules/php')
-rw-r--r--modules/php/php.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/php/php.test b/modules/php/php.test
index 84ddb6c55..487c5a5d6 100644
--- a/modules/php/php.test
+++ b/modules/php/php.test
@@ -37,7 +37,7 @@ class PHPTestCase extends DrupalWebTestCase {
* Tests to make sure the PHP filter actually evaluates PHP code when used.
*/
class PHPFilterTestCase extends PHPTestCase {
- function getInfo() {
+ public static function getInfo() {
return array(
'name' => t('PHP filter functionality'),
'description' => t('Make sure that PHP filter properly evaluates PHP code when enabled.'),
@@ -80,7 +80,7 @@ class PHPFilterTestCase extends PHPTestCase {
* Tests to make sure access to the PHP filter is properly restricted.
*/
class PHPAccessTestCase extends PHPTestCase {
- function getInfo() {
+ public static function getInfo() {
return array(
'name' => t('PHP filter access check'),
'description' => t('Make sure that users who don\'t have access to the PHP filter can\'t see it.'),