GH Actions: fix failing tests on PHP 5.3-5.5 #71
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I still can't fathom why the tests were previously passing and are failing now. I know they were running fine before as I checked the logs on multiple occasions.
I've now unearthed the documentation from Nette Tester 1.x which what's used to run the tests on PHP 5.3-5.5.
The docs state:
... which in a way is similar to the problem we previously ran into for Nette Tester 2.x, which is why the
-C
(= Use system-widephp.ini
) option is used there. Also see #55As the tests were running and passing on Nette 1.x/PHP 5.3 - 5.5 previously, we never dug in deeper for the peculiarities of Nette 1.x.
So to fix the test runs against PHP 5.3 - 5.5, which are using Nette Tester 1.x, I'm proposing to add a
php.ini
file to thetests
directory specifically for use with PHP 5.3 - 5.5.This should get the tests passing again.
I'm adding @villfa as co-author to this PR as I ended up with this solution inspired by a PR they pulled to my fork of this repo.