Closed TimWolla closed 2 years ago
Does it work if you update to master simpletest in https://github.com/simpletest/simpletest
I needed to adjust the simpletest location, because:
root@409808dfd5df:/pwd# php tests/index.php
Warning: require_once(/pwd/simpletest/unit_tester.php): Failed to open stream: No such file or directory in /pwd/tests/common.php on line 44
Fatal error: Uncaught Error: Failed opening required '/pwd/simpletest/unit_tester.php' (include_path='.:') in /pwd/tests/common.php:44
Stack trace:
#0 /pwd/tests/index.php(47): require()
#1 {main}
thrown in /pwd/tests/common.php on line 44
Unfortunately that didn't help:
root@409808dfd5df:/pwd# php tests/index.php
Deprecated: Method ReflectionParameter::isArray() is deprecated in /pwd/simpletest/src/reflection.php on line 413
Deprecated: Method ReflectionParameter::isArray() is deprecated in /pwd/simpletest/src/reflection.php on line 413
Deprecated: Method ReflectionParameter::isArray() is deprecated in /pwd/simpletest/src/reflection.php on line 413
Deprecated: Method ReflectionParameter::isArray() is deprecated in /pwd/simpletest/src/reflection.php on line 413
Deprecated: Method ReflectionParameter::isArray() is deprecated in /pwd/simpletest/src/reflection.php on line 413
Deprecated: Method ReflectionParameter::isArray() is deprecated in /pwd/simpletest/src/reflection.php on line 413
Fatal error: Abstract function HTMLPurifier_AttrDefTestable::validate() cannot contain body in /pwd/simpletest/src/mock_objects.php(1417) : eval()'d code on line 138
I sent a PR https://github.com/simpletest/simpletest/pull/77
However, having resolved the abstract method issue, there are still issues with references which are blocking us from testing HTMLPurifier on PHP 8. Testing references in v1.2.0 looks completely broken :grimacing: :
All HTML Purifier tests on PHP 8.0.6
1) [Object: of HTMLPurifier_DefinitionCache_Serializer] and [Object: of HTMLPurifier_DefinitionCache_Serializer] should reference the same object at [/v/tests/HTMLPurifier/DefinitionCacheFactoryTest.php line 52]
in test_create_recycling
in HTMLPurifier_DefinitionCacheFactoryTest
2) [Object: of HTMLPurifier_ElementDef] and [Object: of HTMLPurifier_ElementDef] should reference the same object at [/v/tests/HTMLPurifier/HTMLModuleTest.php line 42]
in test_addElement
in HTMLPurifier_HTMLModuleTest
3) [Object: of HTMLPurifier_ElementDef] and [Object: of HTMLPurifier_ElementDef] should reference the same object at [/v/tests/HTMLPurifier/HTMLModuleTest.php line 115]
in test_addBlankElement
in HTMLPurifier_HTMLModuleTest
4) [Object: of HTMLPurifier] and [Object: of HTMLPurifier] should reference the same object at [/v/tests/HTMLPurifierTest.php line 46]
in testGetInstance
in HTMLPurifierTest
Test cases run: 220/220, Passes: 2780, Failures: 4, Exceptions: 0