This package provides a couple of traits to be used with push tests for StatusCake.
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\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
Make sure to set the env variables
STATUSCAKE_KEY and also
Push notification documentation can be found at: http://kb.statuscake.com/hc/en-us/articles/203808141-Push-Monitoring
To run the included tests, edit phpunit.xml and set the following variables:
<env name="STATUSCAKE_PK" value="dfa375e414765d6"/> <env name="STATUSCAKE_TESTID" value="543345"/>
To match yours test credentials.