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

https://github.com/ssx/statuscake-ping

This package provides a couple of traits to be used with push tests for StatusCake.
https://github.com/ssx/statuscake-ping

Last synced: over 1 year ago
JSON representation

This package provides a couple of traits to be used with push tests for StatusCake.

Awesome Lists containing this project

README

          

# StatusCake Push Tests

There are two traits in this package that will ping off to a StatusCake push
test, either on destruct of a class or via the ping() method.

The two traits included in this package are `\SSX\StatusCake\DestructPing` and
`\SSX\StatusCake\ManualPing`. Using the `DestructPing` trait will fire the ping
on the destruction of the class. If you would prefer to fire the ping manually
then you can use the `ManualPing` trait and `$this->ping()` method.

Make sure to set the env variables `STATUSCAKE_KEY` and also `STATUSCAKE_TESTID`.

Push notification documentation can be found at:
http://kb.statuscake.com/hc/en-us/articles/203808141-Push-Monitoring

### Tests

To run the included tests, edit phpunit.xml and set the following variables:


To match yours test credentials.