apply patch to tests/phpunit/includes code, see https://core.trac.wordpress.org/ticket/28738