Being a module developer, I use STRICT to make sure my code is the best I can do. My users have all but demanded that I use STRICT.

* Strict warning: Non-static method CoderUpgrade6xTest::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method CoderUpgrade6xTest::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method CoderI18NTest::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method CoderI18NTest::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method CoderSecurityTest::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method CoderSecurityTest::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method CoderSQLTest::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method CoderSQLTest::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method ContentCrudBasicTest::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method ContentCrudBasicTest::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method ContentCrudSingleToMultipleTest::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method ContentCrudSingleToMultipleTest::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method ContentCrudMultipleToSingleTest::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method ContentCrudMultipleToSingleTest::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method ContentUICrud::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method ContentUICrud::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method ContentOptionWidgetTest::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method ContentOptionWidgetTest::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method DateAPITestCase::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method DateAPITestCase::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method DateRepeatTestCase::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method DateRepeatTestCase::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method FileFieldRevisionTestCase::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method FileFieldRevisionTestCase::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method FileFieldDisplayTestCase::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method FileFieldDisplayTestCase::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method FileFieldValidateTestCase::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method FileFieldValidateTestCase::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method FileFieldPathTestCase::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method FileFieldPathTestCase::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method GoogleAnalyticsBasicTest::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method GoogleAnalyticsBasicTest::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method ImageFieldDisplayTestCase::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method ImageFieldDisplayTestCase::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method ImageFieldValidateTestCase::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method ImageFieldValidateTestCase::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method MollomAccessTestCase::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method MollomAccessTestCase::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method MollomFallbackTestCase::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method MollomFallbackTestCase::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method MollomUserFormsTestCase::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method MollomUserFormsTestCase::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method MollomCommentFormTestCase::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method MollomCommentFormTestCase::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method MollomContactFormTestCase::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method MollomContactFormTestCase::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method MollomResellerTestCase::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method MollomResellerTestCase::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method Tracker2TestCase::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method Tracker2TestCase::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method VotingapiTestCase::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).
* Strict warning: Non-static method VotingapiTestCase::getInfo() cannot be called statically in simpletest_categorize_tests() (line 521 of C:\www\webapps\drupal-6\sites\all\modules\simpletest\simpletest.module).

Comments

boombatower’s picture

Status: Active » Closed (works as designed)
nancydru’s picture

Status: Closed (works as designed) » Active

I just downloaded the module 15 minutes before reporting this. How much fresher can I get?

boombatower’s picture

Status: Active » Closed (works as designed)

The tests need to have public static appended to the getInfo() function signature, as it describes in the blog post.

To be clear SimpleTest 2.x is a backport of Drupal 7 SimpleTest which I maintain. We needed to change the API for a number of reason which can be found in the core issue queue. SimpleTest is now intended to look for public static...if it is not there you get the error messages shown above.

nancydru’s picture

Simpletest.test already has this.

nancydru’s picture

All changed and the messages went away. Thanks.