PHPackages                             bebat/filesystem-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. [Testing &amp; Quality](/categories/testing)
4. /
5. bebat/filesystem-assertions

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

bebat/filesystem-assertions
===========================

Collection of assertions about filesystem objects

1.1.1(2y ago)19361MITPHPPHP ^7.2 || ^8.0

Since Apr 18Pushed 2y ago1 watchersCompare

[ Source](https://github.com/bbatsche/filesystem-assertions)[ Packagist](https://packagist.org/packages/bebat/filesystem-assertions)[ Docs](https://github.com/bbatsche/filesystem-assertions)[ RSS](/packages/bebat-filesystem-assertions/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (15)Versions (4)Used By (1)

PHPUnit Filesystem Assertions
=============================

[](#phpunit-filesystem-assertions)

This is a small collection PHPUnit assertions for testing filesystem entries. It is meant to compliment the assertions already built into PHPunit.

[![Latest Stable Version](https://camo.githubusercontent.com/78af483504c3a0300071730cd3ca9c85ad0f8de7521636436cccdfccb12af9a0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f62656261742f66696c6573797374656d2d617373657274696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bebat/filesystem-assertions)[![Required PHP Version](https://camo.githubusercontent.com/4140fe82fbc089f1a687c10422af5327368c7870c811df12ae9fac6971346f01/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f62656261742f66696c6573797374656d2d617373657274696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bebat/filesystem-assertions)[![License](https://camo.githubusercontent.com/806291fd30c53700c161f0ed81405e20eab9c80348501729df6c7c5d91088015/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f62656261742f66696c6573797374656d2d617373657274696f6e733f7374796c653d666c61742d737175617265)](LICENSE)[![Acceptance Test Status](https://camo.githubusercontent.com/1cc20f1cc695b2ce75db6287b8afa3ce399c09e857311e24dd901ca9169003b3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f62626174736368652f66696c6573797374656d2d617373657274696f6e732f616363657074616e63652e796d6c3f6272616e63683d6d61696e267374796c653d666c61742d737175617265)](https://github.com/bbatsche/filesystem-assertions/actions/workflows/acceptance.yml)[![Code Coverage](https://camo.githubusercontent.com/c7d7c236afc7998d31ebec7a8fe635d7dcf2cc1dd56a3d4fd6051df8467e7af7/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f62626174736368652f66696c6573797374656d2d617373657274696f6e733f7374796c653d666c61742d737175617265)](https://codecov.io/gh/bbatsche/filesystem-assertions)

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Available Assertions](#available-assertions)

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

[](#installation)

Use Composer to install the current version of PHPUnit Filesystem Asserts from [Packagist](https://packagist.org/packages/bebat/phpunit-filesystem-assert).

```
composer require --dev bebat/filesystem-assertions
```

The easiest way to add these assertions to your test case(s) is using a trait:

```
