PHPackages                             vladahejda/phpunit-assert-exception - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. vladahejda/phpunit-assert-exception

ActiveLibrary[Testing &amp; Quality](/categories/testing)

vladahejda/phpunit-assert-exception
===================================

Assert exception/throwable/error PHPUnit trait.

v1.3.0(9y ago)18163.2k↓50%712BSD-3-ClausePHPPHP ~7.1

Since Oct 23Pushed 8y ago2 watchersCompare

[ Source](https://github.com/VladaHejda/PhpUnitAssertException)[ Packagist](https://packagist.org/packages/vladahejda/phpunit-assert-exception)[ RSS](/packages/vladahejda-phpunit-assert-exception/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (10)Used By (12)

PhpUnitAssertException
======================

[](#phpunitassertexception)

`AssertException` is a trait, so it can be easily used in your test case.

- For PHP 7.1 and PHPUnit 6 compatibility require version `1.3`.
- For PHP 7.1 compatibility require version `1.2`.
- For PHP 7 compatibility require version `1.1`.
- For PHP 5 compatibility require version `1.0`.

Install
-------

[](#install)

```
$ composer require vladahejda/phpunit-assert-exception

```

Usage
-----

[](#usage)

```
