framework/php-packages/testing
Nicolas Peugnet 4a966b830f
Do not catch exceptions when testing Console commands (#3813)
* Do not catch exceptions when testing Console commands

This allows to easily test a case where a command should throw using `$this->expectException()`.

* Rewrite ConsoleTest to use expectException

Now that the ConsoleApplication is set to not catch exceptions.

---------

Co-authored-by: IanM <16573496+imorland@users.noreply.github.com>
2023-06-21 08:14:12 +01:00
..
.github/workflows Add automated tests for flarum/testing 2021-04-07 22:38:58 +01:00
bootstrap chore: improve test suite (#3814) 2023-06-15 13:26:39 +01:00
src Do not catch exceptions when testing Console commands (#3813) 2023-06-21 08:14:12 +01:00
tests chore: improve test suite (#3814) 2023-06-15 13:26:39 +01:00
.editorconfig Requirement and formatting fixes (#5) 2021-03-21 19:26:25 +01:00
.gitignore Ignore generated tmp 2021-03-11 13:07:31 -05:00
composer.json fix(regression): caught errors 2023-05-31 09:50:39 +01:00
LICENSE Update copyright year 2021-05-15 00:58:25 +01:00