2017 © Pedro Peláez
 

library phpunit-port-canary

Find tests that are making external requests

image

willwashburn/phpunit-port-canary

Find tests that are making external requests

  • Friday, May 26, 2017
  • by willwashburn
  • Repository
  • 1 Watchers
  • 0 Stars
  • 140 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 20 % Grown

The README.md

phpunit-port-canary Packagist Packagist MIT License

:bird: Find tests that are making external requests, (*1)

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., (*2)

Note: This is in a super alpha bootleg version. Try it out, but.. uh, no promises., (*3)

Installation

composer require willwashburn/phpunit-port-canary

Alternatively, add "willwashburn/phpunit-port-canary": "0.0.1" to your composer.json, (*4)

Configuration

Add this to your phpunit.xml, (*5)

    <listeners>
        <listener class="\WillWashburn\PortListener" file="vendor/willwashburn/phpunit-port-canary/src/PortListener.php"/>
    </listeners>

Change Log

  • v0.0.2 - Prettier Reporting
  • v0.0.1 - MVP bootleg version

The Versions

26/05 2017

dev-master

9999999-dev

Find tests that are making external requests

  Sources   Download

MIT

The Requires

 

24/05 2017

v0.0.1

0.0.1.0

Find tests that are making external requests

  Sources   Download

MIT

The Requires