daniel created this task. daniel added subscribers: daniel, Addshore, ori, aude. daniel added projects: Wikidata, MediaWiki-extensions-WikibaseRepository. Herald added a subscriber: Aklapper.
TASK DESCRIPTION The parameters that data providers pass to test functions should not be complex objects. PHPInit 3.7 uses print_r internally to detect recursion. print_r on complex objects can get very big, sometimes exceeding the maximum string length. This will trigger a fatal error as reported in T70423. The solution is to not pass complex objects in test cases, but to construct them (or look them up) in the test functions, based on simpler parameters passed by the data provider. Or we could go to a newer version of PHPUnit. At least the latest version uses the [[ https://github.com/sebastianbergmann/exporter/blob/master/src/Exporter.php | Exporter ]] class, which doesn't have this problem. TASK DETAIL https://phabricator.wikimedia.org/T126864 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: daniel Cc: aude, ori, Addshore, Aklapper, daniel, Izno, Wikidata-bugs, Mbch331 _______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs