Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ PHP-Parser to php-ast

[![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)

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)
8 out of 41 tests are failing, and only due to namespace support and line numbers being slightly different in php-ast.

- The test suite is not yet comprehensive.

[Current Issues](https://github.com/TysonAndre/php-parser-to-php-ast/issues/)

Expand All @@ -24,6 +26,13 @@ Using it as an error-tolerant substitute for php-ast (e.g. for use in IDEs)
- Placeholders may change in the future.
- [tests/ASTConverter/ErrorTolerantConversionTest.php](https://github.com/TysonAndre/php-parser-to-php-ast/blob/master/tests/ASTConverter/ErrorTolerantConversionTest.php)

Running unit tests
------------------

To run unit tests, you must install [nikic/php-ast](https://github.com/nikic/php-ast)

- Then run `vendor/bin/phpunit`

Possible Future Enhancements
----------------------------

Expand Down
8 changes: 5 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
"description": "A php-parser to php-ast converter written in php",
"require": {
"php": ">=7.1",
"nikic/PHP-Parser": "3.0.5",
"ext-ast": "~0.1.4"
"nikic/PHP-Parser": "3.0.5"
},
"require-dev": {
"phpunit/phpunit": "~6.2"
"phpunit/phpunit": "^5.7"
},
"suggest": {
"ext-ast": "~0.1.4"
},
"autoload": {
"psr-4": {"ASTConverter\\": "src/ASTConverter"}
Expand Down
Loading