fix PHP8 errors in tests
These were problems within the tests itself. There are many more problems in the actual code.
This commit is contained in:
parent
1c33cec372
commit
3366d07123
|
@ -95,6 +95,7 @@ abstract class DokuWikiTest extends PHPUnit\Framework\TestCase {
|
|||
$conf['compression'] = 0;
|
||||
}
|
||||
// make real paths and check them
|
||||
init_creationmodes();
|
||||
init_paths();
|
||||
init_files();
|
||||
|
||||
|
|
|
@ -197,7 +197,7 @@ class TestRequest {
|
|||
}
|
||||
|
||||
$params = array();
|
||||
list($uri, $query) = explode('?', $uri, 2);
|
||||
list($uri, $query) = array_pad(explode('?', $uri, 2), 2, null);
|
||||
if($query) parse_str($query, $params);
|
||||
|
||||
$this->script = substr($uri, 1);
|
||||
|
|
|
@ -92,9 +92,9 @@ class init_clean_id_test extends DokuWikiTest
|
|||
|
||||
foreach ($tests as $test) {
|
||||
// defaults
|
||||
$sepchar = $test[2]['sepchar'] ?: '_';
|
||||
$sepchar = isset($test[2]['sepchar']) ? $test[2]['sepchar'] : '_';
|
||||
$deaccent = isset($test[2]['deaccent']) ? $test[2]['deaccent'] : 1;
|
||||
$ascii = $test[2]['ascii'] ?: false;
|
||||
$ascii = isset($test[2]['ascii']) ? $test[2]['ascii'] : false;
|
||||
|
||||
// unless set, test both useslash settings
|
||||
if (isset($test[2]['useslash'])) {
|
||||
|
|
Loading…
Reference in New Issue