Commit Graph

7 Commits

Author SHA1 Message Date
Michael Große 9dcfcc1513
test: run test in separate process in case of error
If there is an error when executing the method under test, then this
test caused the downstream test \remoteapicore_test::test_getBacklinks
to unexpectedly fail. Probably, because the global plugin controller
would not have been reset to its original value.

Running this test in its own process ensures that it won't affect any
other test, even if it messes with the global state and doesn't clean up.
2021-02-20 15:48:01 +01:00
Michael Große e855b7ed6a
test: fix two tests on PHP8
On PHP8 trying to access a non-existing array key leads to a warning,
which we might treat as errors?

This incidentally also fixes another test downstream which broke because
this rendering test changes the global plugin controller, but doesn't
clean it up that if the test errors.

-9000 is used as the position to make it obvious that this number is
meaningless for this test.
2021-02-20 15:47:08 +01:00
Michael Große 5805f15af0
style: fix test code style
This makes all the basic phpcs style fixes and adds visibility to the
class methods.
2021-02-20 15:24:11 +01:00
Christopher Smith 4d8acaacee remove '&' reference operator from metadata test, not required in php5 2013-10-16 21:52:02 +01:00
Andreas Gohr e8b5a4f91c fix E_STRICT errors FS#2427
This commit fixes all E_STRICT messages shown when running the test
suite. There might be more problems not covered by tests, yet.

For compatibility reasons with plugins, E_STRICT errors are still
supressed.
2012-07-28 12:02:06 +02:00
Andreas Gohr 050f8f4ddc removed unecessary requiresin unit tests 2012-05-01 22:58:57 +02:00
Tobias Sarnowski f8369d7d6e moved _testing to _test 2012-04-18 12:08:28 +02:00
Renamed from _testing/tests/inc/parserutils_set_metadata_during_rendering.test.php (Browse further)