Jump to:
| Project: | SimpleTest |
| Version: | 6.x-2.8 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed (works as designed) |
Issue Summary
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
#1
http://blog.boombatower.com/simpletest-6.x-2.8-fresh-backport
#2
I just downloaded the module 15 minutes before reporting this. How much fresher can I get?
#3
The tests need to have
public staticappended to thegetInfo()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.#4
Simpletest.test already has this.
#5
All changed and the messages went away. Thanks.