PHPackages                             apostle/phpunit-validation - 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. apostle/phpunit-validation

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

apostle/phpunit-validation
==========================

Use the Symfony Validator component in PHPUnit

122.3k1[1 issues](https://github.com/apostle-nl/phpunit-validation/issues)[4 PRs](https://github.com/apostle-nl/phpunit-validation/pulls)PHP

Since Aug 6Pushed 9y ago1 watchersCompare

[ Source](https://github.com/apostle-nl/phpunit-validation)[ Packagist](https://packagist.org/packages/apostle/phpunit-validation)[ RSS](/packages/apostle-phpunit-validation/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

PHPUnit Validation
==================

[](#phpunit-validation)

The PHPUnit Validation bundle allows you to use the Symfony [Validator](https://github.com/symfony/validator) validation rules in PHPUnit tests.

Some of the existing PHPUnit assertions are overloaded with Symfony validation rules such as the `assertTrue` and `assertFalse` assertions.

Installation
------------

[](#installation)

Installation is as easy as updating your `composer.json`:

```
{
    "require": {
        "apostle/phpunit-validation": "1.0.*@dev"
    }
}
```

Usage
-----

[](#usage)

Usage is as simple as the installation. All you need to do is use the base test case class provider by this library instead of the default base test case:

```
