From af347e1ad8e4eef087266c5e1883cfccdda6ae3b Mon Sep 17 00:00:00 2001 From: Brian Evans Date: Fri, 20 Dec 2019 13:28:40 -0500 Subject: [PATCH] dev-php/PHP_TokenStream: Fix tests for new phpunit Signed-off-by: Brian Evans --- dev-php/PHP_TokenStream/PHP_TokenStream-3.1.1.ebuild | 5 +++++ 1 file changed, 5 insertions(+) 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/* -- 2.26.2