Extract phpunit call to run-phpunit.sh
Add basic SSH2 functional test as an example.