summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Replace dirname(__FILE__) by __DIR__ in testsFabien Villepinte2019-03-1541-44/+44
|
* Use EXPECT when possibleGabriel Caruso2019-03-111-1/+1
| | | | EXPECTF logic in run-tests.php is considerable, so let's avoid it.
* Fix tests bareword fallback with error suppressionNikita Popov2019-02-251-56/+56
| | | | | | Re-merge commit a369326003995c137046c908e79b6ab482d34cec into PHP-7.4 (cherry picked from commit aad39879f2d2e89de105c4f87d334ee129b4321c) (cherry picked from commit 76f8a908bb18aee92b8f3d523b74b06c9d12cb6b)
* Implement fine-grained conflict handlingNikita Popov2019-02-204-0/+3
| | | | | | Tests can specify conflict keys, either in --CONFLICTS-- or a per-directory CONFLICTS file. Non-conflicting tests may be run in parallel.
* Remove some zpp failure testsNikita Popov2019-02-1910-250/+0
| | | | These tests exclusively check zpp failure conditions, so drop them.
* run-tests.php: experimental parallel testing supportAndrea Faulds2019-02-182-0/+0
|
* Fixed bug #75921David Walker2019-02-143-1/+63
| | | | | | | | | | | Ensure that the "creating default object from empty value" warning is always thrown. Previously some cases were missing the warning, in particular those going through FETCH_OBJ_W rather than a dedicated opcode (like ASSIGN_OBJ). One slightly unfortunate side-effect of this change is that something like $a->b->c = 'd' will now generate two warnings rather than one when $a is null (one for property b, one for property c).
* Fix testNikita Popov2019-02-121-1/+1
| | | | Missing this change in 93641539429c41a8997016ee4a4502882b0a722e.
* Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2019-02-123-10/+14
|\
| * Merge branch 'PHP-7.2' into PHP-7.3Nikita Popov2019-02-123-10/+14
| |\
| | * Fixed bug #75546DanielCiochiu2019-02-123-10/+14
| | | | | | | | | | | | | | | By respecting the SILENT flag when checking the visibility of a class constant.
| * | Fix tests bareword fallback with error suppressionGuilliam Xavier2019-02-111-56/+56
| | | | | | | | | | | | | | | (cherry picked from commit aad39879f2d2e89de105c4f87d334ee129b4321c) (cherry picked from commit 76f8a908bb18aee92b8f3d523b74b06c9d12cb6b)
* | | Remove zpp variation testsNikita Popov2019-02-051-194/+0
| | |
* | | Revert "Don't silence fatal errors with @"Nikita Popov2019-01-311-1/+1
| | | | | | | | | | | | | | | | | | | | | This reverts commit abd36289e26cc0365e82373699aba4c1ffff464d. This wasn't ready for merging yet, there are still some test failures.
* | | Don't silence fatal errors with @Nikita Popov2019-01-311-1/+1
| | |
* | | Merge branch 'PHP-7.3'Nikita Popov2019-01-181-0/+34
|\ \ \ | |/ /
| * | Merge branch 'PHP-7.2' into PHP-7.3Nikita Popov2019-01-181-0/+34
| |\ \ | | |/
| | * Fix seeking in php://inputLauri Kenttä2019-01-181-0/+34
| | |
* | | Implement typed propertiesNikita Popov2019-01-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RFC: https://wiki.php.net/rfc/typed_properties_v2 This is a squash of PR #3734, which is a squash of PR #3313. Co-authored-by: Bob Weinand <bobwei9@hotmail.com> Co-authored-by: Joe Watkins <krakjoe@php.net> Co-authored-by: Dmitry Stogov <dmitry@zend.com>
* | | Remove some mentions of RECOVERABLE_ERROR in testsNikita Popov2018-11-151-5/+0
| | | | | | | | | | | | Mostly drop error handlers that are no longer necessary.
* | | Merge branch 'PHP-7.3'Rasmus Lerdorf2018-10-311-0/+4
|\ \ \ | |/ / | | | | | | | | | * PHP-7.3: This test needs to log to stdout
| * | This test needs to log to stdoutRasmus Lerdorf2018-10-311-0/+4
| | |
* | | Merge branch 'PHP-7.3'Peter Kokot2018-10-181-1/+5
|\ \ \ | |/ / | | | | | | | | | * PHP-7.3: Fix tests/output/bug74815.phpt generating errors.log
| * | Merge branch 'PHP-7.2' into PHP-7.3Peter Kokot2018-10-181-1/+5
| |\ \ | | |/ | | | | | | | | | * PHP-7.2: Fix tests/output/bug74815.phpt generating errors.log
| | * Fix tests/output/bug74815.phpt generating errors.logPeter Kokot2018-10-181-1/+5
| | | | | | | | | | | | | | | Test tests/output/bug74815.phpt was creating an errors.log file in project root directory and didn't removed it after the test.
| | * Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-15178-201/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines in all *.phpt sections. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
| | * Trim trailing whitespace in *.phptPeter Kokot2018-10-14376-906/+906
| | |
| | * Sync leading and final newlines in source code filesPeter Kokot2018-10-144-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
| | * Merge branch 'PHP-7.1' into PHP-7.2Peter Kokot2018-10-132-69/+69
| | |\ | | | | | | | | | | | | | | | | * PHP-7.1: Fix failing tests/lang due to whitespace
| | | * Fix failing tests/lang due to whitespacePeter Kokot2018-10-132-69/+69
| | | |
| | | * Trim trailing whitespace in source code filesPeter Kokot2018-10-138-28/+28
| | | |
| | | * Convert CRLF line endings to LFPeter Kokot2018-10-1375-6553/+6553
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch simplifies line endings tracked in the Git repository and syncs them to all include the LF style instead of the CRLF files. Newline characters: - LF (\n) (*nix and Mac) - CRLF (\r\n) (Windows) - CR (\r) (old Mac, obsolete) To see which line endings are in the index and in the working copy the following command can be used: `git ls-files --eol` Git additionally provides `.gitattributes` file to specify if some files need to have specific line endings on all platforms (either CRLF or LF). Changed files shouldn't cause issues on modern Windows platforms because also Git can do output conversion is core.autocrlf=true is set on Windows and use CRLF newlines in all files in the working tree. Unless CRLF files are tracked specifically, Git by default tracks all files in the index using LF newlines.
| | * | Trim trailing whitespace in source code filesPeter Kokot2018-10-138-28/+28
| | | |
| * | | Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-15178-201/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines in all *.phpt sections. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
| * | | Trim trailing whitespace in *.phptPeter Kokot2018-10-14375-902/+902
| | | |
| * | | Sync leading and final newlines in source code filesPeter Kokot2018-10-144-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
* | | | Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-15179-202/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines in all *.phpt sections. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
* | | | Trim trailing whitespace in *.phptPeter Kokot2018-10-1469-91/+91
| | | |
* | | | Trim trailing whitespace in testsGabriel Caruso2018-10-14342-813/+813
| | | |
* | | | Sync leading and final newlines in source code filesPeter Kokot2018-10-144-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
* | | | Don't overload get_properties for ArrayObjectNikita Popov2018-10-101-13/+0
| | | | | | | | | | | | | | | | | | | | | | | | Instead overload get_properties_for for a few specific cases such as array casts. This resolves the issue where ArrayObject get_properties may violate engine invariants in some cases.
* | | | Merge branch 'PHP-7.3'Nikita Popov2018-09-291-1/+4
|\ \ \ \ | |/ / /
| * | | Fixed bug #72635Nikita Popov2018-09-291-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | This seems to be a simple oversight, where we did not enable exceptions. Other constexpr conditions already throw, so there is no particular reason to stick to a fatal error here.
* | | | Remove duplicate test fileNikita Popov2018-09-221-69/+0
| | | | | | | | | | | | | | | | This is already tested in Zend/tests/bug63463.phpt.
* | | | Rename *.p5c files to *.incPeter Kokot2018-09-2110-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | When including files in PHP tests a good practice so far has been to use the *.inc extension. This patch renames few *.p5c files that are included in phpt files.
* | | | Fix permissionsPeter Kokot2018-09-214-0/+0
| | | | | | | | | | | | | | | | Certain files don't need to be executables.
* | | | Use EXPECT instead of EXPECTF when possibleGabriel Caruso2018-09-161-1/+1
| | | |
* | | | Make more tests run on LinuxGabriel Caruso2018-08-281-6/+0
| | | |
* | | | Fix some misspellingsGabriel Caruso2018-08-124-5/+5
|/ / /
* | | Make more tests run on 64bit plataformsGabriel Caruso2018-07-303-12/+0
| | |