Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bbatsche/filesystem-assertions

PHPUnit assertions for filesystem objects
https://github.com/bbatsche/filesystem-assertions

assertions filesystem php phpunit testing

Last synced: 25 days ago
JSON representation

PHPUnit assertions for filesystem objects

Awesome Lists containing this project

README

        

# 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://img.shields.io/packagist/v/bebat/filesystem-assertions.svg?style=flat-square)](https://packagist.org/packages/bebat/filesystem-assertions)
[![Required PHP Version](https://img.shields.io/packagist/php-v/bebat/filesystem-assertions.svg?style=flat-square)](https://packagist.org/packages/bebat/filesystem-assertions)
[![License](https://img.shields.io/packagist/l/bebat/filesystem-assertions?style=flat-square)](LICENSE)
[![Acceptance Test Status](https://img.shields.io/github/actions/workflow/status/bbatsche/filesystem-assertions/acceptance.yml?branch=main&style=flat-square)](https://github.com/bbatsche/filesystem-assertions/actions/workflows/acceptance.yml)
[![Code Coverage](https://img.shields.io/codecov/c/github/bbatsche/filesystem-assertions?style=flat-square)](https://codecov.io/gh/bbatsche/filesystem-assertions)

## Table of Contents

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

## Installation

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

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

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

```php