Comments (4)
I've made a start on the functional tests with Mocha, see PR #13.
from php-parser.
Really thanks, you saved me a lot of time.
I will continue to improve tests - actually builds fails because of travis and the deployment of php7 with apt ...
By the way, symphony parsing passes - that's why I've started to test with php7
from php-parser.
The mocha tests should be run as part of the CI build as well, the .travis.yml
file needs updating :)
EDIT: Actually, seems like we need to add the mocha tests to the package.json
. Need to check if we can run two sets of tests (the current tests and the new functional tests)
https://docs.travis-ci.com/user/languages/javascript-with-nodejs#Default-Test-Script
from php-parser.
mocha tests are now included into the coverage process and can also be run with node bin/test.js -m test/functional
Remains some coverage to be done, but I close the issue, testing tools are running
from php-parser.
Related Issues (20)
- Null-safe operator followed by a property named `class` results in a syntax error HOT 1
- Modifying the AST HOT 4
- "arrowfunc" puts body into a block HOT 1
- AST type inconsistencies
- add a wiki page for all the available options/configs and what each is for ? HOT 1
- how to access property promotion in php8 ? HOT 6
- noop start and end loc is swapped
- Attribute parsing with string concatenation HOT 2
- Nested staticlookup of property called `class`
- attribute start and end loc are the same, and source is undefined
- Disjunctive Normal Form (DNF) Types is not parsed
- Unexpected syntax error when nullsafe object operator used with parentheses
- Wrong start loc when using nullsafeoperator `?->`
- `uniontype` has wrong start loc
- Heredoc fails to parse escaped newlines
- Fails to parse classes with typed constants HOT 2
- Don`t mark property as static HOT 3
- Error when type hinting class properties with fully qualified classname HOT 1
- Error in types.d.ts TypeScript definitions
- How to turn ast into PHP code HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-parser.