Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/bbatsche/filesystem-assertions
- Owner: bbatsche
- License: mit
- Created: 2022-04-17T02:31:27.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-10T01:52:24.000Z (over 1 year ago)
- Last Synced: 2024-11-16T17:46:08.879Z (2 months ago)
- Topics: assertions, filesystem, php, phpunit, testing
- Language: PHP
- Homepage:
- Size: 56.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
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