Introduce functional tests (SSH2 as an example)

Replaces #253

* Putting the functional tests into a seperate directory was considered, but was not done because it would complicate the (auto)loading.
* Putting the variables in phpunit.xml was considered, but is not a good idea due to PHPUnit not supporting configuration inheritance.