Edit: I misunderstood your question. I guess facebook php-webdriver can help you. Search something like 'facebook php webdriver example' and you can find code examples.
Old:
Test of Phpunit Selenium on Github there are some examples.
And there are examples in official manual.