MDL-31857 phpunit: PHPDoc and typo fixes during integration