如何测试WebSocket + PHP应用程序?

I have chat app written on php with websocket (Ratchet + ReactPHP).

I have some PHPUnit test for standalone classes. But i wont to test a whole functionality of my app.

How to do it? What is the best way to do it?

You could simply write PHPUnit tests for your whole project.

Here is a good guide, if you wanna test your whole project with PHPUnit and Selenium(a portable test framework):

https://netbeans.org/kb/docs/php/phpunit.html