unit-testing/function-spy (packagist): a testing utility for phpunit that helps test globally defined functions
Keywords: testing|phpunit|trait