-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow
MethodProphecy::willThrow()
to accept Throwable as string
- add additional check for existence of interface in contructor - change `is_subclass_of` to `is_a` to allow for `Throwable` and subclasses of `Throwable` - add specs for cases of `Throwable` and extensions of `Throwable` To maintain support for php 5.3 the new specs are only applicable for PHP 7.0 and higher and `ThrowPromise::isValidThrowable()` checks for both `Exception` and `Throwable`. fixes #428
- Loading branch information
1 parent
7e27218
commit 6e23e4c
Showing
2 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters