Skip to content

More pretty print tests - #232

Closed
AydinHassan wants to merge 2 commits into
nikic:masterfrom
AydinHassan:more-pretty-print-tests
Closed

More pretty print tests#232
AydinHassan wants to merge 2 commits into
nikic:masterfrom
AydinHassan:more-pretty-print-tests

Conversation

@AydinHassan

Copy link
Copy Markdown

Hey, I was using the PrinterPrinter for something and noticed that a lot of the code was not tested, so I decided to add some tests. See 818cc6.

I also added a multi init for loop parser test. See 2188234.

Comment thread test/code/prettyPrinter/for.test Outdated

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The $ here is missing a variable name -- that's probably what's causing the issue.

The error message in the test is really bad though, that should be done better...

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, that's embarrassing :(

@AydinHassan
AydinHassan force-pushed the more-pretty-print-tests branch from 21dfa54 to 2188234 Compare October 1, 2015 16:01
@AydinHassan

Copy link
Copy Markdown
Author

@nikic Fixed and updated the PR description, now excuse me while I go back to page 1 in my PHP book 😭

@nikic

nikic commented Oct 2, 2015

Copy link
Copy Markdown
Owner

Thanks for the tests! That brings pretty printer coverage to 91% :)

@nikic nikic closed this Oct 2, 2015
@AydinHassan

Copy link
Copy Markdown
Author

Thanks 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants