From: Brian Evans Date: Fri, 20 Dec 2019 18:28:40 +0000 (-0500) Subject: dev-php/PHP_TokenStream: Fix tests for new phpunit X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=af347e1ad8e4eef087266c5e1883cfccdda6ae3b;p=gentoo.git dev-php/PHP_TokenStream: Fix tests for new phpunit Signed-off-by: Brian Evans --- diff --git a/dev-php/PHP_TokenStream/PHP_TokenStream-3.1.1.ebuild b/dev-php/PHP_TokenStream/PHP_TokenStream-3.1.1.ebuild index 1abe33f362c5..106234e79bf1 100644 --- a/dev-php/PHP_TokenStream/PHP_TokenStream-3.1.1.ebuild +++ b/dev-php/PHP_TokenStream/PHP_TokenStream-3.1.1.ebuild @@ -26,6 +26,11 @@ RDEPEND="dev-php/fedora-autoloader BDEPEND="test? ( ${RDEPEND} dev-php/phpunit )" RESTRICT="!test? ( test )" +src_prepare() { + sed -i -e 's/setUp()/setUp():void/' tests/Token/*.php || die + default +} + src_install() { insinto /usr/share/php/PHP/Token doins -r src/*