1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="Color conversion and mixing for PHP5"
12 KEYWORDS="~amd64 ~x86"
14 RESTRICT="!test? ( test )"
15 DEPEND="test? ( >=dev-php/phpunit-5 )"
19 sed -i -e "/require_once 'PHPUnit\/Framework.php';/d" \
20 -e "s/assertType('\(Image_[a-zA-Z2_]*\)',/assertInstanceOf(\1::class,/" \
21 -e "s/assertType('array',/assertInternalType('array',/" \
22 -e "s/assertType('string',/assertInternalType('string',/" \
23 tests/*.php tests/Model/*.php || die
28 phpunit tests/AllTests.php || die