use PHPUnit static assertions
Merge pull request #6680 from petersuhm/phpunit-static-assertions

Use PHPUnit static assertions