# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=9 COMPOSER_INSTALL_AUTOLOAD="library" COMPOSER_INSTALL_PATH="Mockery" COMPOSER_INSTALL_SRC="library/Mockery" inherit composer git-r3 DESCRIPTION="Flexible PHP mock object framework" HOMEPAGE="https://github.com/mockery/mockery" EGIT_REPO_URI="https://github.com/mockery/mockery.git" LICENSE="BSD" SLOT="0" RDEPEND="dev-php/hamcrest" PATCHES=( "${FILESDIR}/${PN}"-1.6.15-tests.patch ) DOCS=( {CHANGELOG,README}.md ) # hangs under Portage when testing a mocked never-returning method in a forked child EPHPUNIT_EXCLUDE_FILTER='testItCanMockAClassWithANeverReturningTypeHintWithExit' composer_enable_tests phpunit src_compile() { :; } src_install() { composer_src_install # install files into COMPOSER_INSTALL_PATH doins library/{autoload,helpers,Mockery}.php }