dev-php/PHP_TokenStream: Fix tests for new phpunit
authorBrian Evans <grknight@gentoo.org>
Fri, 20 Dec 2019 18:28:40 +0000 (13:28 -0500)
committerBrian Evans <grknight@gentoo.org>
Fri, 20 Dec 2019 18:34:23 +0000 (13:34 -0500)
Signed-off-by: Brian Evans <grknight@gentoo.org>
dev-php/PHP_TokenStream/PHP_TokenStream-3.1.1.ebuild

index 1abe33f362c54d7d1b83961209f1f008aec884a6..106234e79bf14e8b19534c29b18544b6cda31c59 100644 (file)
@@ -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/*