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.
- Host: GitHub
- URL: https://github.com/ssx/statuscake-ping
- Owner: ssx
- License: mit
- Created: 2015-08-18T12:41:10.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-08-29T15:11:14.000Z (almost 11 years ago)
- Last Synced: 2025-01-26T08:41:38.648Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 184 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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.