Timeline for PHPUnit assert that an exception was thrown?
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 18, 2021 at 20:32 | comment | added | Jimmix |
Thanks to the Data Providers you can test multiple exceptions using $this->expectException() per single test method. More info
|
|
Jan 9, 2019 at 22:59 | comment | added | domdambrogia | Definitely the best solution out of all of the answers! Throw it into a trait and package it! | |
May 27, 2018 at 1:48 | history | edited | Finesse | CC BY-SA 4.0 |
Improved the code style
|
Oct 27, 2017 at 10:10 | history | answered | Finesse | CC BY-SA 3.0 |