File tree Expand file tree Collapse file tree 4 files changed +154
-276
lines changed Expand file tree Collapse file tree 4 files changed +154
-276
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,9 @@ PHP-Parser to php-ast
33
44[ ![ Build Status] ( https://travis-ci.org/TysonAndre/php-parser-to-php-ast.svg?branch=master )] ( https://travis-ci.org/TysonAndre/php-parser-to-php-ast )
55
6- 5 out of 28 tests are failing, and only due to line numbers being wrong in php-ast. This is fixed in php 7.1-dev (will be in 7.1.4)
6+ 8 out of 41 tests are failing, and only due to namespace support and line numbers being slightly different in php-ast.
7+
8+ - The test suite is not yet comprehensive.
79
810[ Current Issues] ( https://github.com/TysonAndre/php-parser-to-php-ast/issues/ )
911
@@ -24,6 +26,13 @@ Using it as an error-tolerant substitute for php-ast (e.g. for use in IDEs)
2426- Placeholders may change in the future.
2527- [ tests/ASTConverter/ErrorTolerantConversionTest.php] ( https://github.com/TysonAndre/php-parser-to-php-ast/blob/master/tests/ASTConverter/ErrorTolerantConversionTest.php )
2628
29+ Running unit tests
30+ ------------------
31+
32+ To run unit tests, you must install [ nikic/php-ast] ( https://github.com/nikic/php-ast )
33+
34+ - Then run ` vendor/bin/phpunit `
35+
2736Possible Future Enhancements
2837----------------------------
2938
Original file line number Diff line number Diff line change 33 "description" : " A php-parser to php-ast converter written in php" ,
44 "require" : {
55 "php" : " >=7.1" ,
6- "nikic/PHP-Parser" : " 3.0.5" ,
7- "ext-ast" : " ~0.1.4"
6+ "nikic/PHP-Parser" : " 3.0.5"
87 },
98 "require-dev" : {
10- "phpunit/phpunit" : " ~6.2"
9+ "phpunit/phpunit" : " ^5.7"
10+ },
11+ "suggest" : {
12+ "ext-ast" : " ~0.1.4"
1113 },
1214 "autoload" : {
1315 "psr-4" : {"ASTConverter\\ " : " src/ASTConverter" }
You can’t perform that action at this time.
0 commit comments