Skip to content

Commit

Permalink
dev-php/phpunit: Version bump with unbundled dependencies
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.4, Repoman-2.3.2
  • Loading branch information
Brian Evans committed Mar 9, 2017
1 parent 76cc211 commit 573f9ce
Show file tree
Hide file tree
Showing 3 changed files with 223 additions and 0 deletions.
1 change: 1 addition & 0 deletions dev-php/phpunit/Manifest
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ DIST phpunit-3.7.20.phar 2769487 SHA256 7972291d498a425f7daaf0274eed45d8ba564b87
DIST phpunit-4.3.1.phar 3324489 SHA256 1bac0c5f53bc04efa680bf9b3dcb35e804714eb8f497931ba81bdf08ae432c37 SHA512 de123e2301dc1d64e7401ceaec48c9458c3ab0dfc78faa488bed12c5b30b1367e1f9f6dfbbd5a07b427a56aad6d989f36a11b4642a0a843eed9c39e551be0490 WHIRLPOOL dbe5bed2251832c6c905b09c131bc2dc98de6247ef55077d9882c41a0b20b2e8b1c2489dbc0b3c1ed746f81c2b7163042e73790fff2b2ca78f8470875d77d88f
DIST phpunit-4.8.19.phar 3079159 SHA256 ff0e3c284f0170c2f8a6759937d7e0f1689c079e6aff114218a339bab79de8a9 SHA512 08b2d6743e3f6c3bcc09d60391886fb3a21bffe338304bbe65703d430ded1fab96d9ef426467e5703af5c3ebed771d21fa49059e994e8b02056f340087ba616b WHIRLPOOL f69dde07d401b112bacddd6aec81ff4241552c5be9b3ccf2a447da353e32470f80e2b90e3fe9e2c723ad845d16a90a32778275b54abf6995c8ecc9d1c14f6b80
DIST phpunit-5.0.10.phar 2773192 SHA256 e740f1376fec6dd19023d38537583276f804d02f818af1f1b2012599743c7c29 SHA512 978bbc409aeb6823c8a8a630fb6221fad5e6aac1d49288c93a69936468bdc6c01d2c58344b161b6fa6a6ccf6ff1100738edb00d7c3cef357751d00323c365d8d WHIRLPOOL 52255b646c063b60d2094fd1f08546b4c498ddd3c4b7fe0ebfc3f6370581e00679774e5492a30a3f5428007250a1c13937c34016e746004a019bfa26e52cdc18
DIST phpunit-5.7.15.tar.gz 205474 SHA256 d1ce59cfe5f4939c694b6a3ca84eed9a0099228ad8f57c379ffc6fd4806ef1a7 SHA512 6a836e1ad1656fd1d1c5a58ced3c1826b4decc01798b6a804b487c9b4e094ec32f6eb8a84058e268eade62a2fe19d7bd1e760b8b9433299d9fe9c09afdf2bdd3 WHIRLPOOL 7a268ac8df88992fe97fa74820a766bf4199753c743da945d6bae64987fa8f904c0dfe026d861d81aade4cd23576133592f998dc66150aea730cefc804ed610b
167 changes: 167 additions & 0 deletions dev-php/phpunit/files/autoload.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
<?php
/* Autoloader for dev-php/phpunit and its dependencies */

if (!class_exists('Fedora\\Autoloader\\Autoload', false)) {
require_once '/usr/share/php/Fedora/Autoloader/autoload.php';
}

\Fedora\Autoloader\Autoload::addClassMap(
array(
'phpunit\\framework\\assert' => '/ForwardCompatibility/Assert.php',
'phpunit\\framework\\basetestlistener' => '/ForwardCompatibility/BaseTestListener.php',
'phpunit\\framework\\testcase' => '/ForwardCompatibility/TestCase.php',
'phpunit\\framework\\testlistener' => '/ForwardCompatibility/TestListener.php',
'phpunit_exception' => '/Exception.php',
'phpunit_extensions_grouptestsuite' => '/Extensions/GroupTestSuite.php',
'phpunit_extensions_phpttestcase' => '/Extensions/PhptTestCase.php',
'phpunit_extensions_phpttestsuite' => '/Extensions/PhptTestSuite.php',
'phpunit_extensions_repeatedtest' => '/Extensions/RepeatedTest.php',
'phpunit_extensions_testdecorator' => '/Extensions/TestDecorator.php',
'phpunit_extensions_ticketlistener' => '/Extensions/TicketListener.php',
'phpunit_framework_assert' => '/Framework/Assert.php',
'phpunit_framework_assertionfailederror' => '/Framework/AssertionFailedError.php',
'phpunit_framework_basetestlistener' => '/Framework/BaseTestListener.php',
'phpunit_framework_codecoverageexception' => '/Framework/CodeCoverageException.php',
'phpunit_framework_constraint' => '/Framework/Constraint.php',
'phpunit_framework_constraint_and' => '/Framework/Constraint/And.php',
'phpunit_framework_constraint_arrayhaskey' => '/Framework/Constraint/ArrayHasKey.php',
'phpunit_framework_constraint_arraysubset' => '/Framework/Constraint/ArraySubset.php',
'phpunit_framework_constraint_attribute' => '/Framework/Constraint/Attribute.php',
'phpunit_framework_constraint_callback' => '/Framework/Constraint/Callback.php',
'phpunit_framework_constraint_classhasattribute' => '/Framework/Constraint/ClassHasAttribute.php',
'phpunit_framework_constraint_classhasstaticattribute' => '/Framework/Constraint/ClassHasStaticAttribute.php',
'phpunit_framework_constraint_composite' => '/Framework/Constraint/Composite.php',
'phpunit_framework_constraint_count' => '/Framework/Constraint/Count.php',
'phpunit_framework_constraint_directoryexists' => '/Framework/Constraint/DirectoryExists.php',
'phpunit_framework_constraint_exception' => '/Framework/Constraint/Exception.php',
'phpunit_framework_constraint_exceptioncode' => '/Framework/Constraint/ExceptionCode.php',
'phpunit_framework_constraint_exceptionmessage' => '/Framework/Constraint/ExceptionMessage.php',
'phpunit_framework_constraint_exceptionmessageregexp' => '/Framework/Constraint/ExceptionMessageRegExp.php',
'phpunit_framework_constraint_fileexists' => '/Framework/Constraint/FileExists.php',
'phpunit_framework_constraint_greaterthan' => '/Framework/Constraint/GreaterThan.php',
'phpunit_framework_constraint_isanything' => '/Framework/Constraint/IsAnything.php',
'phpunit_framework_constraint_isempty' => '/Framework/Constraint/IsEmpty.php',
'phpunit_framework_constraint_isequal' => '/Framework/Constraint/IsEqual.php',
'phpunit_framework_constraint_isfalse' => '/Framework/Constraint/IsFalse.php',
'phpunit_framework_constraint_isfinite' => '/Framework/Constraint/IsFinite.php',
'phpunit_framework_constraint_isidentical' => '/Framework/Constraint/IsIdentical.php',
'phpunit_framework_constraint_isinfinite' => '/Framework/Constraint/IsInfinite.php',
'phpunit_framework_constraint_isinstanceof' => '/Framework/Constraint/IsInstanceOf.php',
'phpunit_framework_constraint_isjson' => '/Framework/Constraint/IsJson.php',
'phpunit_framework_constraint_isnan' => '/Framework/Constraint/IsNan.php',
'phpunit_framework_constraint_isnull' => '/Framework/Constraint/IsNull.php',
'phpunit_framework_constraint_isreadable' => '/Framework/Constraint/IsReadable.php',
'phpunit_framework_constraint_istrue' => '/Framework/Constraint/IsTrue.php',
'phpunit_framework_constraint_istype' => '/Framework/Constraint/IsType.php',
'phpunit_framework_constraint_iswritable' => '/Framework/Constraint/IsWritable.php',
'phpunit_framework_constraint_jsonmatches' => '/Framework/Constraint/JsonMatches.php',
'phpunit_framework_constraint_jsonmatches_errormessageprovider' => '/Framework/Constraint/JsonMatches/ErrorMessageProvider.php',
'phpunit_framework_constraint_lessthan' => '/Framework/Constraint/LessThan.php',
'phpunit_framework_constraint_not' => '/Framework/Constraint/Not.php',
'phpunit_framework_constraint_objecthasattribute' => '/Framework/Constraint/ObjectHasAttribute.php',
'phpunit_framework_constraint_or' => '/Framework/Constraint/Or.php',
'phpunit_framework_constraint_pcrematch' => '/Framework/Constraint/PCREMatch.php',
'phpunit_framework_constraint_samesize' => '/Framework/Constraint/SameSize.php',
'phpunit_framework_constraint_stringcontains' => '/Framework/Constraint/StringContains.php',
'phpunit_framework_constraint_stringendswith' => '/Framework/Constraint/StringEndsWith.php',
'phpunit_framework_constraint_stringmatches' => '/Framework/Constraint/StringMatches.php',
'phpunit_framework_constraint_stringstartswith' => '/Framework/Constraint/StringStartsWith.php',
'phpunit_framework_constraint_traversablecontains' => '/Framework/Constraint/TraversableContains.php',
'phpunit_framework_constraint_traversablecontainsonly' => '/Framework/Constraint/TraversableContainsOnly.php',
'phpunit_framework_constraint_xor' => '/Framework/Constraint/Xor.php',
'phpunit_framework_coveredcodenotexecutedexception' => '/Framework/CoveredCodeNotExecutedException.php',
'phpunit_framework_error' => '/Framework/Error.php',
'phpunit_framework_error_deprecated' => '/Framework/Error/Deprecated.php',
'phpunit_framework_error_notice' => '/Framework/Error/Notice.php',
'phpunit_framework_error_warning' => '/Framework/Error/Warning.php',
'phpunit_framework_exception' => '/Framework/Exception.php',
'phpunit_framework_exceptionwrapper' => '/Framework/ExceptionWrapper.php',
'phpunit_framework_expectationfailedexception' => '/Framework/ExpectationFailedException.php',
'phpunit_framework_incompletetest' => '/Framework/IncompleteTest.php',
'phpunit_framework_incompletetestcase' => '/Framework/IncompleteTestCase.php',
'phpunit_framework_incompletetesterror' => '/Framework/IncompleteTestError.php',
'phpunit_framework_invalidcoverstargetexception' => '/Framework/InvalidCoversTargetException.php',
'phpunit_framework_missingcoversannotationexception' => '/Framework/MissingCoversAnnotationException.php',
'phpunit_framework_outputerror' => '/Framework/OutputError.php',
'phpunit_framework_riskytest' => '/Framework/RiskyTest.php',
'phpunit_framework_riskytesterror' => '/Framework/RiskyTestError.php',
'phpunit_framework_selfdescribing' => '/Framework/SelfDescribing.php',
'phpunit_framework_skippedtest' => '/Framework/SkippedTest.php',
'phpunit_framework_skippedtestcase' => '/Framework/SkippedTestCase.php',
'phpunit_framework_skippedtesterror' => '/Framework/SkippedTestError.php',
'phpunit_framework_skippedtestsuiteerror' => '/Framework/SkippedTestSuiteError.php',
'phpunit_framework_syntheticerror' => '/Framework/SyntheticError.php',
'phpunit_framework_test' => '/Framework/Test.php',
'phpunit_framework_testcase' => '/Framework/TestCase.php',
'phpunit_framework_testfailure' => '/Framework/TestFailure.php',
'phpunit_framework_testlistener' => '/Framework/TestListener.php',
'phpunit_framework_testresult' => '/Framework/TestResult.php',
'phpunit_framework_testsuite' => '/Framework/TestSuite.php',
'phpunit_framework_testsuite_dataprovider' => '/Framework/TestSuite/DataProvider.php',
'phpunit_framework_unintentionallycoveredcodeerror' => '/Framework/UnintentionallyCoveredCodeError.php',
'phpunit_framework_warning' => '/Framework/Warning.php',
'phpunit_framework_warningtestcase' => '/Framework/WarningTestCase.php',
'phpunit_runner_basetestrunner' => '/Runner/BaseTestRunner.php',
'phpunit_runner_exception' => '/Runner/Exception.php',
'phpunit_runner_filter_factory' => '/Runner/Filter/Factory.php',
'phpunit_runner_filter_group_exclude' => '/Runner/Filter/Group/Exclude.php',
'phpunit_runner_filter_group_include' => '/Runner/Filter/Group/Include.php',
'phpunit_runner_filter_groupfilteriterator' => '/Runner/Filter/Group.php',
'phpunit_runner_filter_test' => '/Runner/Filter/Test.php',
'phpunit_runner_standardtestsuiteloader' => '/Runner/StandardTestSuiteLoader.php',
'phpunit_runner_testsuiteloader' => '/Runner/TestSuiteLoader.php',
'phpunit_runner_version' => '/Runner/Version.php',
'phpunit_textui_command' => '/TextUI/Command.php',
'phpunit_textui_resultprinter' => '/TextUI/ResultPrinter.php',
'phpunit_textui_testrunner' => '/TextUI/TestRunner.php',
'phpunit_util_blacklist' => '/Util/Blacklist.php',
'phpunit_util_configuration' => '/Util/Configuration.php',
'phpunit_util_configurationgenerator' => '/Util/ConfigurationGenerator.php',
'phpunit_util_errorhandler' => '/Util/ErrorHandler.php',
'phpunit_util_fileloader' => '/Util/Fileloader.php',
'phpunit_util_filesystem' => '/Util/Filesystem.php',
'phpunit_util_filter' => '/Util/Filter.php',
'phpunit_util_getopt' => '/Util/Getopt.php',
'phpunit_util_globalstate' => '/Util/GlobalState.php',
'phpunit_util_invalidargumenthelper' => '/Util/InvalidArgumentHelper.php',
'phpunit_util_log_json' => '/Util/Log/JSON.php',
'phpunit_util_log_junit' => '/Util/Log/JUnit.php',
'phpunit_util_log_tap' => '/Util/Log/TAP.php',
'phpunit_util_log_teamcity' => '/Util/Log/TeamCity.php',
'phpunit_util_php' => '/Util/PHP.php',
'phpunit_util_php_default' => '/Util/PHP/Default.php',
'phpunit_util_php_windows' => '/Util/PHP/Windows.php',
'phpunit_util_printer' => '/Util/Printer.php',
'phpunit_util_regex' => '/Util/Regex.php',
'phpunit_util_string' => '/Util/String.php',
'phpunit_util_test' => '/Util/Test.php',
'phpunit_util_testdox_nameprettifier' => '/Util/TestDox/NamePrettifier.php',
'phpunit_util_testdox_resultprinter' => '/Util/TestDox/ResultPrinter.php',
'phpunit_util_testdox_resultprinter_html' => '/Util/TestDox/ResultPrinter/HTML.php',
'phpunit_util_testdox_resultprinter_text' => '/Util/TestDox/ResultPrinter/Text.php',
'phpunit_util_testdox_resultprinter_xml' => '/Util/TestDox/ResultPrinter/XML.php',
'phpunit_util_testsuiteiterator' => '/Util/TestSuiteIterator.php',
'phpunit_util_type' => '/Util/Type.php',
'phpunit_util_xml' => '/Util/XML.php',
),
'/usr/share/php/PHPUnit'
);

// Dependencies
\Fedora\Autoloader\Dependencies::required(array(
'/usr/share/php/File/Iterator/autoload.php',
'/usr/share/php/PHP/CodeCoverage/autoload.php',
'/usr/share/php/PHP/Timer/autoload.php',
'/usr/share/php/SebastianBergmann/Version/autoload.php',
'/usr/share/php/SebastianBergmann/Diff/autoload.php',
'/usr/share/php/SebastianBergmann/Environment/autoload.php',
'/usr/share/php/SebastianBergmann/Exporter/autoload.php',
'/usr/share/php/SebastianBergmann/GlobalState/autoload.php',
'/usr/share/php/SebastianBergmann/Comparator/autoload.php',
'/usr/share/php/SebastianBergmann/ResourceOperations/autoload.php',
'/usr/share/php/Symfony/Component/Yaml/autoload.php',
'/usr/share/php/Text/Template/autoload.php',
'/usr/share/php/myclabs/DeepCopy/autoload.php',
'/usr/share/php/PHPUnit/Framework/MockObject/autoload.php',
'/usr/share/php/phpspec/Prophecy/autoload.php',
));
55 changes: 55 additions & 0 deletions dev-php/phpunit/phpunit-5.7.15.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

DESCRIPTION="A PHP Unit Testing framework"
HOMEPAGE="http://phpunit.de"
SRC_URI="https://github.com/sebastianbergmann/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND="dev-php/fedora-autoloader
>=dev-php/File_Iterator-1.4.0
!>=dev-php/File_Iterator-2.0
>=dev-php/Text_Template-1.2.0
!>=dev-php/Text_Template-2.0
>=dev-php/PHP_CodeCoverage-4.0.4
!>=dev-php/PHP_CodeCoverage-5.0
>=dev-php/PHP_Timer-1.0.6
!>=dev-php/PHP_Timer-2.0
<dev-php/myclabs-deepcopy-2.0
<dev-php/phpspec-prophecy-2.0
<dev-php/phpunit-mock-objects-4.0
<dev-php/sebastian-comparator-2.0
<dev-php/sebastian-diff-2.0
<dev-php/sebastian-environment-3.0
<dev-php/sebastian-exporter-3.0
<dev-php/sebastian-global-state-2.0
<dev-php/sebastian-object-enumerator-3.0
<dev-php/sebastian-resource-operations-2.0
<dev-php/sebastian-version-3.0
<dev-php/symfony-yaml-4.0
|| (
dev-lang/php:5.6[cli,json,unicode,xml]
dev-lang/php:7.0[cli,json,unicode,xml]
dev-lang/php:7.1[cli,json,unicode,xml]
)"

src_install() {
insinto /usr/share/php/PHPUnit
doins -r src/*
insinto /usr/share/php/PHPUnit/vendor
doins "${FILESDIR}/autoload.php"
exeinto /usr/share/php/PHPUnit
doexe phpunit
dosym /usr/share/php/PHPUnit/phpunit /usr/bin/phpunit
}

pkg_postinst() {
elog "${PN} can optionally use json, pdo-sqlite and pdo-mysql features."
elog "If you want those, emerge dev-lang/php with USE=\"json pdo sqlite mysql\"."
}

0 comments on commit 573f9ce

Please sign in to comment.