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

https://github.com/php-forge/support

Support utilities for enhanced testing capabilities.
https://github.com/php-forge/support

helper phpunit support tests

Last synced: 26 days ago
JSON representation

Support utilities for enhanced testing capabilities.

Awesome Lists containing this project

README

          



PHP Forge

Support





PHPUnit


Mutation Testing


PHPStan


Support utilities for PHPUnit-focused development

Reflection helpers, line ending normalization, and filesystem cleanup for deterministic tests.

## Features


Feature Overview

### Installation

```bash
composer require php-forge/support:^0.2 --dev
```

### Quick start

This package provides helper classes for PHPUnit tests.

It supports reflection-based access to non-public members, deterministic string comparisons across platforms, and filesystem cleanup for isolated test environments.

#### Accessing private properties

```php
name;
$attributeFragment = " data-size=\"{$normalized}\"";

self::assertSame($expected, $attributeFragment, $message);
}
}
```

##### Enum instance output (non-HTML)

```php
name, $normalized);
}
}
```

## Documentation

For detailed configuration options and advanced usage.

- ๐Ÿงช [Testing Guide](docs/testing.md)
- ๐Ÿ› ๏ธ [Development Guide](docs/development.md)

## Package information

[![PHP](https://img.shields.io/badge/%3E%3D8.1-777BB4.svg?style=for-the-badge&logo=php&logoColor=white)](https://www.php.net/releases/8.1/en.php)
[![Latest Stable Version](https://img.shields.io/packagist/v/php-forge/support.svg?style=for-the-badge&logo=packagist&logoColor=white&label=Stable)](https://packagist.org/packages/php-forge/support)
[![Total Downloads](https://img.shields.io/packagist/dt/php-forge/support.svg?style=for-the-badge&logo=composer&logoColor=white&label=Downloads)](https://packagist.org/packages/php-forge/support)

## Quality code

[![Codecov](https://img.shields.io/codecov/c/github/php-forge/support.svg?style=for-the-badge&logo=codecov&logoColor=white&label=Coverage)](https://codecov.io/github/php-forge/support)
[![PHPStan Level Max](https://img.shields.io/badge/PHPStan-Level%20Max-4F5D95.svg?style=for-the-badge&logo=github&logoColor=white)](https://github.com/php-forge/support/actions/workflows/static.yml)
[![Super-Linter](https://img.shields.io/github/actions/workflow/status/php-forge/support/linter.yml?style=for-the-badge&label=Super-Linter&logo=github)](https://github.com/php-forge/support/actions/workflows/linter.yml)
[![StyleCI](https://img.shields.io/badge/StyleCI-Passed-44CC11.svg?style=for-the-badge&logo=github&logoColor=white)](https://github.styleci.io/repos/779611775?branch=main)

## Our social networks

[![Follow on X](https://img.shields.io/badge/-Follow%20on%20X-1DA1F2.svg?style=for-the-badge&logo=x&logoColor=white&labelColor=000000)](https://x.com/Terabytesoftw)

## License

[![License](https://img.shields.io/badge/License-BSD--3--Clause-brightgreen.svg?style=for-the-badge&logo=opensourceinitiative&logoColor=white&labelColor=555555)](LICENSE)