Skip to content

Commit

Permalink
Fixed constructor tests for PHP 7
Browse files Browse the repository at this point in the history
  • Loading branch information
boekkooi committed Nov 2, 2015
1 parent e16d0bb commit 7fd2e49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Unit/Form/FormRuleCompilerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ public function construct_should_only_accept_a_array_of_compilers($invalid)
{
try {
new FormRuleCompiler($invalid);
} catch (\TypeError $e) {
return;
} catch (\PHPUnit_Framework_Error $e) {
return;
} catch (\InvalidArgumentException $e) {
Expand Down
2 changes: 2 additions & 0 deletions tests/Unit/Form/FormRuleProcessorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ public function construct_should_only_accept_a_array_of_processors($invalid)
{
try {
new FormRuleProcessor($invalid);
} catch (\TypeError $e) {
return;
} catch (\PHPUnit_Framework_Error $e) {
return;
} catch (\InvalidArgumentException $e) {
Expand Down

0 comments on commit 7fd2e49

Please sign in to comment.