Skip to content

Commit

Permalink
Allow to silence error messages about replacing undefined functions (…
Browse files Browse the repository at this point in the history
…fixing erroneous test) + adding PHP 7 to Travis
  • Loading branch information
antecedent committed Aug 15, 2015
1 parent 5d13a11 commit ed5ef01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -2,6 +2,7 @@ language: php
script: phpunit tests
php:
- hhvm
- 7
- 5.6
- 5.5
- 5.4
Expand Down
2 changes: 1 addition & 1 deletion tests/patchability.phpt
Expand Up @@ -51,7 +51,7 @@ if (!Patchwork\Utils\runningOnHHVM()) {
Patchwork\undo(Patchwork\replace('anotherUndefinedFunction', function() {}));

# Should raise no errors
Patchwork\replace('yetAnotherUndefinedFunction')->silence();
Patchwork\replace('yetAnotherUndefinedFunction', function() {})->silence();

?>
===DONE===
Expand Down

0 comments on commit ed5ef01

Please sign in to comment.