1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-12-13 18:07:32 +01:00
Commit Graph

35 Commits

Author SHA1 Message Date
Nikita Popov
9f6ad686a7 Adjust skip list for moved test
The two remaining test_old failures are due to a bug on the PHP
side.
2020-09-19 15:55:07 +02:00
Nikita Popov
722119502f Fine grained version choice for test_old 2020-08-09 16:54:13 +02:00
Graham Campbell
544aee1671 Fix up tests 2020-08-09 16:54:09 +02:00
Tomas Votruba
69c5d48afd
[PHP 8.0] Add match expressions (#672)
RFC:  https://wiki.php.net/rfc/match_expression_v2
Upstream implementation: php/php-src#5371

Closes #671.
2020-07-15 21:40:05 +02:00
Nikita Popov
2f45e05042 Skip php-src test file 2019-10-19 10:44:01 +02:00
Tomáš Votruba
3f718ee2c3 [PHP 7.4] Add support for numeric literal separators (#615)
Implements RFC https://wiki.php.net/rfc/numeric_literal_separator.

Closes #614.
2019-06-30 12:13:28 +02:00
Tomáš Votruba
f3b19c19ef [PHP 7.4] Add support for arrow functions (#602)
Per RFC https://wiki.php.net/rfc/arrow_functions_v2.
2019-05-09 14:17:28 +02:00
Nikita Popov
c5316487a4 Update test_old Symfony runner 2018-09-22 10:41:58 +02:00
Nikita Popov
146411bb86 Ignore one more test...
This one is passing on Windows because the extra \r makes the
opening tag actually valid. Fails on Linux though.
2018-09-21 12:41:10 +02:00
Nikita Popov
e12891a9db Ignore failures in complex flexible doc string tests
These test nesting of flexible heredoc strings. This is too hard for
us to emulate and we do not expect to see these patterns used in the
wild.
2018-09-21 12:35:11 +02:00
Nikita Popov
fd93690705 Test against more recent php-src tarball 2018-09-21 11:40:36 +02:00
Nikita Popov
6a273c9fbd Remove Autoloader class 2018-01-25 23:13:53 +01:00
Gabriel Caruso
4366aa2fb0 [CS] Use __DIR__ instead of dirname(__FILE__) 2018-01-13 16:02:14 +01:00
Nikita Popov
7254040998 Test FPPP roundtrip in test_old 2017-11-04 12:37:34 +01:00
Nikita Popov
301c34373d Update run-php-src to use 7.1.0 2016-12-11 16:47:47 +01:00
Nikita Popov
954051f240 Run test_old using php -n
Xdebug is killing performance.
2016-04-10 21:09:02 +09:00
Nikita Popov
4252ffa43e Run test_old against php-src on travis 2016-04-07 06:39:29 +02:00
Nikita Popov
fa6a17755a Add two files to test_old skip list
The parse after pretty printing differs here, because these tests
contain nop (;) statements, which the pretty printer does not
preserve.
2016-04-07 11:58:36 +09:00
Nikita Popov
1565a2815d Add --verbose option to test_old/run.php 2016-04-05 19:19:20 +09:00
Nikita Popov
49253c5dbb Fix test_old/run.php error message 2015-07-09 12:38:30 +02:00
Nikita Popov
f3f24e03ae Support running against PHP 7 testsuite 2015-06-13 19:09:24 +02:00
nikic
523e024ba0 Fix a number of other typos 2014-02-12 17:47:34 +01:00
nikic
f82862ec9c Port library to use namespaces, with BC for old names 2014-02-06 20:29:35 +01:00
nikic
db18906dfc Rename PrettyPrinter_Zend to PrettyPrinter_Default 2013-01-15 17:43:36 +01:00
nikic
5438cc0d69 Add progress indicator for test_old.
I hate waiting for something without seeing at least *some* output.
2012-05-05 12:22:23 +02:00
nikic
c3cf3f29bd Adjust test_old to use new Lexer injection method 2012-05-04 10:16:52 +02:00
nikic
584f6b0ab3 Make old testrunner PHP 5.2 compatible 2012-01-15 16:55:01 +01:00
nikic
c51991bc3c Improve test run.php
* Add two more ignored tests (not real pretty print differences)
 * Measure more times
2011-10-30 12:16:31 +01:00
nikic
d9b5814074 run tests with all errors enabled 2011-10-20 22:36:10 +02:00
nikic
dc4182277f Exclude fatal errors one some files from PHP tests 2011-10-19 20:04:57 +02:00
nikic
460f981e84 Improve tests
* Script is now at test_old/run.php and is CLI only
* Accepts a test type (Symfony or PHP) and a path to the test files as arguments
* For the PHP testsuite files that expect a parse error are not tested (though Fatal errors are tested, so there are still 49 parse test failures)
* Removed testExpressions.php as this is covered in the PHP testsuite
2011-10-19 17:55:37 +02:00
nikic
afdfb6bf08 Make test_old able to run PHP testsuite 2011-10-17 17:49:24 +02:00
nikic
a551bbc5a4 Add PHPParser_Node interface 2011-09-21 21:43:19 +02:00
nikic
3583c1955f Improve NodeDumper performance and make testAgainstDirectory more friendly 2011-09-06 17:10:58 +02:00
nikic
a6f97681f6 Start adding Unit test (PHPUnit) 2011-07-13 13:03:37 +02:00