Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore Hack enum declarations #508

Merged

Conversation

fredemmott
Copy link
Contributor

Without this, phpunit incorrectly considers this to be untested executable code:
https://github.com/hhvm/hack-codegen/blob/master/src/CodegenWithVisibility.php#L13

Tested with:

hhvm -d hhvm.jit=0 -d hhvm.enable_call_builtin=0 -d xdebug.enable=1 vendor/bin/phpunit --coverage-html ./coverage

against https://github.com/hhvm/hack-codegen

Without this, phpunit incorrectly considers this to be untested executable code:
https://github.com/hhvm/hack-codegen/blob/master/src/CodegenWithVisibility.php#L13

Tested with:

```
hhvm -d hhvm.jit=0 -d hhvm.enable_call_builtin=0 -d xdebug.enable=1 vendor/bin/phpunit --coverage-html ./coverage
```

against https://github.com/hhvm/hack-codegen
@sebastianbergmann sebastianbergmann merged commit 240b8d3 into sebastianbergmann:master Feb 23, 2017
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