The Pusher Test Stub provide a way of testing your client-side integration with the Pusher JavaScript library and lets you trigger events to ensure that your application behaves in the way you expect it to.
http://blog.pusher.com/2011/9/2/testing-your-integration-with-the-pusher-javascript-library