Patch 1

Some various fixes, basically testsuite didn't run over here because of wrong classnames and colon usage (syntax).

Also phpunit.xml has been renamed to phpunit.xml.dist and the former file-name gitingored as a common pattern for local phpunit configuration.

Uses SPDX identifiers now for the License and the obligatory whitespace police.