PHPackages                             jpeters8889/phpunit-code-assertions - 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. [Framework](/categories/framework)
4. /
5. jpeters8889/phpunit-code-assertions

ActiveLibrary[Framework](/categories/framework)

jpeters8889/phpunit-code-assertions
===================================

Rules and assertions in PHPUnit for code quality, rules and patterns.

v0.1.2(11mo ago)0115MITPHPPHP ^8.3CI passing

Since Jun 9Pushed 11mo agoCompare

[ Source](https://github.com/jpeters8889/phpunit-code-assertions)[ Packagist](https://packagist.org/packages/jpeters8889/phpunit-code-assertions)[ RSS](/packages/jpeters8889-phpunit-code-assertions/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (10)Versions (3)Used By (0)

PHPUnit Code Assertions
=======================

[](#phpunit-code-assertions)

 [![Build Status](https://github.com/jpeters8889/phpunit-code-assertions/actions/workflows/laravel-pint.yml/badge.svg)](https://github.com/jpeters8889/phpunit-code-assertions/actions) [![Build Status](https://github.com/jpeters8889/phpunit-code-assertions/actions/workflows/phpstan.yml/badge.svg)](https://github.com/jpeters8889/phpunit-code-assertions/actions) [![Build Status](https://github.com/jpeters8889/phpunit-code-assertions/actions/workflows/phpunit.yml/badge.svg)](https://github.com/jpeters8889/phpunit-code-assertions/actions)

 [![Total Downloads](https://camo.githubusercontent.com/f2a9585ee86c37c760f05c20f43baa0546a22738beb6aebdb42b40882c83b366/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a706574657273383838392f706870756e69742d636f64652d617373657274696f6e73)](https://packagist.org/packages/jpeters8889/phpunit-code-assertions) [![Latest Stable Version](https://camo.githubusercontent.com/28d583ca4ac5121f48721ef14d2aad373ee65c54cdb7964b74fff58618ff3a7b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a706574657273383838392f706870756e69742d636f64652d617373657274696f6e73)](https://packagist.org/packages/jpeters8889/phpunit-code-assertions) [![License](https://camo.githubusercontent.com/7c4fef8c3ca8dd0c336fd9f08b7b6a8b6d9825d4f3f28e6744d2feb443f04133/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6a706574657273383838392f706870756e69742d636f64652d617373657274696f6e73)](https://packagist.org/packages/jpeters8889/phpunit-code-assertions)

> **Caution**: This package is a **work in progress** and is still at beta stage and could make breaking changes without warning.

**PHPUnit Code Assertions** is a set of code assertions to use in a PHPUnit test suite, heavily inspired by PestPHP Arch testing, but in a PHPUnit code style.

Simply extend the `CodeAssertionsTestCase` in your test file and you're ready to go!

```
