summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2019-12-20 13:28:40 -0500
committerBrian Evans <grknight@gentoo.org>2019-12-20 13:34:23 -0500
commitaf347e1ad8e4eef087266c5e1883cfccdda6ae3b (patch)
tree1157f095e9b963714c4e32cbcad187c85b65f198
parentdev-php/phpunit: Fix errors in autoload file (diff)
downloadgentoo-af347e1ad8e4eef087266c5e1883cfccdda6ae3b.tar.gz
gentoo-af347e1ad8e4eef087266c5e1883cfccdda6ae3b.tar.bz2
gentoo-af347e1ad8e4eef087266c5e1883cfccdda6ae3b.zip
dev-php/PHP_TokenStream: Fix tests for new phpunit
Signed-off-by: Brian Evans <grknight@gentoo.org>
-rw-r--r--dev-php/PHP_TokenStream/PHP_TokenStream-3.1.1.ebuild5
1 files changed, 5 insertions, 0 deletions
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/*