From f40532da769cd1dd551a42bec64dbb1aff240099 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Tue, 31 Mar 2009 01:49:55 +0000 Subject: #376129 by boombatower, Damien Tournoud, and chx: Change getInfo() to a static method to reduce memory footprint of SimpleTest. --- modules/php/php.test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/php') 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.'), -- cgit v1.2.3