Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/willwashburn/phpunit-port-canary
🐦 Find tests that are making external requests
https://github.com/willwashburn/phpunit-port-canary
phpunit phpunit-listener
Last synced: 26 days ago
JSON representation
🐦 Find tests that are making external requests
- Host: GitHub
- URL: https://github.com/willwashburn/phpunit-port-canary
- Owner: willwashburn
- License: mit
- Created: 2017-05-24T09:39:55.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-05-26T13:51:28.000Z (over 7 years ago)
- Last Synced: 2024-04-14T14:52:10.535Z (7 months ago)
- Topics: phpunit, phpunit-listener
- Language: PHP
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# phpunit-port-canary [![Packagist](https://img.shields.io/packagist/dt/willwashburn/phpunit-port-canary.svg?style=flat-square)](https://packagist.org/packages/willwashburn/phpunit-port-canary/stats) [![Packagist](https://img.shields.io/packagist/v/willwashburn/phpunit-port-canary.svg?style=flat-square)](https://packagist.org/packages/willwashburn/phpunit-port-canary) [![MIT License](https://img.shields.io/packagist/l/willwashburn/phpunit-port-canary.svg?style=flat-square)](https://github.com/willwashburn/phpunit-port-canary/blob/master/license.txt)
:bird: Find tests that are making external requests## Why
Not all tests are written perfectly. This library intends to help you spot when your phpunit tests are making requests across ports when you don't want them to.>Note: This is in a super alpha bootleg version. Try it out, but.. uh, no promises.
## Installation
```
composer require willwashburn/phpunit-port-canary
```Alternatively, add `"willwashburn/phpunit-port-canary": "0.0.1"` to your composer.json
## Configuration
Add this to your phpunit.xml
```XML
```## Change Log
- v0.0.2 - Prettier Reporting
- v0.0.1 - MVP bootleg version