summaryrefslogtreecommitdiff
path: root/scripts/dev/bless_tests.php
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'PHP-7.4'Christoph M. Becker2020-06-101-3/+3
|\ | | | | | | | | * PHP-7.4: Also support absolute Windows filenames
| * Also support absolute Windows filenamesChristoph M. Becker2020-06-101-3/+3
| | | | | | | | | | | | | | The output normalization of bless_tests.php only detected absolute Unix filenames; we extend this for absolute Windows filenames, regardless of the platform we're running on (tests may have been run on Windows, but bless_tests.php may be run from WSL or a Linux VM, for instance).
* | Make numeric operations on resources, arrays and objects type errorsNikita Popov2020-05-051-1/+2
| | | | | | | | | | | | RFC: https://wiki.php.net/rfc/arithmetic_operator_type_checks Closes GH-5331.
* | Improve bless tests script to minimize diffsNikita Popov2019-10-011-2/+166
|/ | | | | | Compute the diff between the old EXPECTF and the new output and don't touch lines that still match the old EXPECTF. This reduces the amount of manual fixup necessary after running bless_tests.php.
* Handle resources used as array keys consistentlyNikita Popov2019-09-271-0/+4
| | | | | | | | Resources used as array keys are generally handled by throwing a notice and converting the resource to the resource handle. The only exception is the [$resource => null] syntax, where this was treated as an illegal offset type instead. However, this also only happened for VM evaluations, the AST evaluator did handle resources correctly.
* Throw notice for plain wrapper fread/fwrite errorsNikita Popov2019-07-251-0/+1
| | | | Similar to what is done for socket read/write errors.
* Improve bless_testsNikita Popov2019-07-121-0/+1
| | | | | If a string var_dump contains a wildcard, also make the length a wildcard.
* Support passing single file to bless_tests.phpNikita Popov2019-02-201-8/+21
| | | | Or a mix of multiple directories/files. Also make the file executable.
* Handle exception patterns in bless_tests.phpNikita Popov2019-02-181-1/+3
|
* Add bless_tests.phpNikita Popov2019-02-111-0/+49
Helper script to perform certain kinds of trivial test updates.