bug #19126 [PhpUnitBridge] use call_user_func() for PHP 5.3 compatibility (xabbuh)

This PR was merged into the 3.2-dev branch.

Discussion
----------

[PhpUnitBridge] use call_user_func() for PHP 5.3 compatibility

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

Not all callables can be called directly on PHP 5.3 (for example, `array('className', 'methodName')` does not work).

Commits
-------

8549e05 use call_user_func() for PHP 5.3 compatibility
This commit is contained in:
Fabien Potencier 2016-06-21 09:23:35 +02:00
commit 26eca5d8c9
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ final class ErrorAssert
$triggeredMessages[] = $message;
});
$testCode();
call_user_func($testCode);
} catch (\Exception $e) {
} catch (\Throwable $e) {
}