diff options
author | Max Semenik <maxsem.wiki@gmail.com> | 2021-02-10 15:17:03 +0300 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2021-03-16 11:51:55 +0100 |
commit | 9140c9038a83ff55a78f357f8485de086d83d94e (patch) | |
tree | a40b6d3591df574e8292aaae6a56c4818483a250 /build | |
parent | 77ebf81492e8d9dcd441894cea9e6efdc8d1011a (diff) | |
download | php-git-9140c9038a83ff55a78f357f8485de086d83d94e.tar.gz |
run-tests.php: class for test file loading
This moves a bunch of code outside of run_tests(), making it a bit
more manageable. Additionally, accessors provide better readability
than isset() and friends.
This is a minimal patch that moves the code but does not refactor
much. For the sake of reviewing experience, it does not involve
further refactoring which could include:
* Removing setSection()
* Fixing up the mess with hasSection() vs. sectionNotEmpty(), only
one of which is really needed.
* Moving more repetitive code into the new class.
All of this will be done with later commits.
Closes GH-6678.
Diffstat (limited to 'build')
0 files changed, 0 insertions, 0 deletions