diff options
author | Brian Evans <grknight@gentoo.org> | 2017-03-09 11:18:03 -0500 |
---|---|---|
committer | Brian Evans <grknight@gentoo.org> | 2017-03-09 11:23:00 -0500 |
commit | 76cc21143177fc8d12428c9c2c8f123188759ef4 (patch) | |
tree | 4fb8f40ff07a4b5469c5ce61f79aa525d7af48ab /dev-php/phpunit-mock-objects | |
parent | dev-php/PHP_CodeCoverage: Version bump and use composer autoloading (diff) | |
download | gentoo-76cc21143177fc8d12428c9c2c8f123188759ef4.tar.gz gentoo-76cc21143177fc8d12428c9c2c8f123188759ef4.tar.bz2 gentoo-76cc21143177fc8d12428c9c2c8f123188759ef4.zip |
dev-php/phpunit-mock-objects: New package for an unbundled phpunit
Package-Manager: Portage-2.3.4, Repoman-2.3.2
Diffstat (limited to 'dev-php/phpunit-mock-objects')
-rw-r--r-- | dev-php/phpunit-mock-objects/Manifest | 1 | ||||
-rw-r--r-- | dev-php/phpunit-mock-objects/files/autoload.php | 61 | ||||
-rw-r--r-- | dev-php/phpunit-mock-objects/metadata.xml | 8 | ||||
-rw-r--r-- | dev-php/phpunit-mock-objects/phpunit-mock-objects-3.4.3.ebuild | 28 |
4 files changed, 98 insertions, 0 deletions
diff --git a/dev-php/phpunit-mock-objects/Manifest b/dev-php/phpunit-mock-objects/Manifest new file mode 100644 index 000000000000..41754ca1773c --- /dev/null +++ b/dev-php/phpunit-mock-objects/Manifest @@ -0,0 +1 @@ +DIST phpunit-mock-objects-3.4.3.tar.gz 37921 SHA256 4579a83f32a6b8f0341a51e68a54508cbd313c1d5a72065ebe9bcb9a5b878aad SHA512 c9305796062a9ef412c194a82322c913b695c74fd9505580707381f9d9f96f6d69a16bde2c35226240e3c2bfaa6f0f9bf1c94c178b8a1f050b5afef7e53611de WHIRLPOOL cfed39495826a298b13aa8816541dff3e86d0afb5bd44ebd5f584a53aee4e23229a0c15d1eb1547194ded307d51db8c6118ed6c169457d2e784c1e0ebe4e55c5 diff --git a/dev-php/phpunit-mock-objects/files/autoload.php b/dev-php/phpunit-mock-objects/files/autoload.php new file mode 100644 index 000000000000..96bcae916553 --- /dev/null +++ b/dev-php/phpunit-mock-objects/files/autoload.php @@ -0,0 +1,61 @@ +<?php +/* Autoloader for dev-php/sebastian-diff */ + +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; +} + +\Fedora\Autoloader\Autoload::addClassMap( + array( + 'phpunit_framework_mockobject_badmethodcallexception' => '/Exception/BadMethodCallException.php', + 'phpunit_framework_mockobject_builder_identity' => '/Builder/Identity.php', + 'phpunit_framework_mockobject_builder_invocationmocker' => '/Builder/InvocationMocker.php', + 'phpunit_framework_mockobject_builder_match' => '/Builder/Match.php', + 'phpunit_framework_mockobject_builder_methodnamematch' => '/Builder/MethodNameMatch.php', + 'phpunit_framework_mockobject_builder_namespace' => '/Builder/Namespace.php', + 'phpunit_framework_mockobject_builder_parametersmatch' => '/Builder/ParametersMatch.php', + 'phpunit_framework_mockobject_builder_stub' => '/Builder/Stub.php', + 'phpunit_framework_mockobject_exception' => '/Exception/Exception.php', + 'phpunit_framework_mockobject_generator' => '/Generator.php', + 'phpunit_framework_mockobject_invocation' => '/Invocation.php', + 'phpunit_framework_mockobject_invocationmocker' => '/InvocationMocker.php', + 'phpunit_framework_mockobject_invocation_object' => '/Invocation/Object.php', + 'phpunit_framework_mockobject_invocation_static' => '/Invocation/Static.php', + 'phpunit_framework_mockobject_invokable' => '/Invokable.php', + 'phpunit_framework_mockobject_matcher' => '/Matcher.php', + 'phpunit_framework_mockobject_matcher_anyinvokedcount' => '/Matcher/AnyInvokedCount.php', + 'phpunit_framework_mockobject_matcher_anyparameters' => '/Matcher/AnyParameters.php', + 'phpunit_framework_mockobject_matcher_consecutiveparameters' => '/Matcher/ConsecutiveParameters.php', + 'phpunit_framework_mockobject_matcher_invocation' => '/Matcher/Invocation.php', + 'phpunit_framework_mockobject_matcher_invokedatindex' => '/Matcher/InvokedAtIndex.php', + 'phpunit_framework_mockobject_matcher_invokedatleastcount' => '/Matcher/InvokedAtLeastCount.php', + 'phpunit_framework_mockobject_matcher_invokedatleastonce' => '/Matcher/InvokedAtLeastOnce.php', + 'phpunit_framework_mockobject_matcher_invokedatmostcount' => '/Matcher/InvokedAtMostCount.php', + 'phpunit_framework_mockobject_matcher_invokedcount' => '/Matcher/InvokedCount.php', + 'phpunit_framework_mockobject_matcher_invokedrecorder' => '/Matcher/InvokedRecorder.php', + 'phpunit_framework_mockobject_matcher_methodname' => '/Matcher/MethodName.php', + 'phpunit_framework_mockobject_matcher_parameters' => '/Matcher/Parameters.php', + 'phpunit_framework_mockobject_matcher_statelessinvocation' => '/Matcher/StatelessInvocation.php', + 'phpunit_framework_mockobject_mockbuilder' => '/MockBuilder.php', + 'phpunit_framework_mockobject_mockobject' => '/MockObject.php', + 'phpunit_framework_mockobject_runtimeexception' => '/Exception/RuntimeException.php', + 'phpunit_framework_mockobject_stub' => '/Stub.php', + 'phpunit_framework_mockobject_stub_consecutivecalls' => '/Stub/ConsecutiveCalls.php', + 'phpunit_framework_mockobject_stub_exception' => '/Stub/Exception.php', + 'phpunit_framework_mockobject_stub_matchercollection' => '/Stub/MatcherCollection.php', + 'phpunit_framework_mockobject_stub_return' => '/Stub/Return.php', + 'phpunit_framework_mockobject_stub_returnargument' => '/Stub/ReturnArgument.php', + 'phpunit_framework_mockobject_stub_returncallback' => '/Stub/ReturnCallback.php', + 'phpunit_framework_mockobject_stub_returnreference' => '/Stub/ReturnReference.php', + 'phpunit_framework_mockobject_stub_returnself' => '/Stub/ReturnSelf.php', + 'phpunit_framework_mockobject_stub_returnvaluemap' => '/Stub/ReturnValueMap.php', + 'phpunit_framework_mockobject_verifiable' => '/Verifiable.php', + ), + __DIR__ +); + +\Fedora\Autoloader\Dependencies::required(array( + '/usr/share/php/Doctrine/Instantiator/autoload.php', + '/usr/share/php/SebastianBergmann/Exporter/autoload.php', + '/usr/share/php/Text/Template/autoload.php', +)); diff --git a/dev-php/phpunit-mock-objects/metadata.xml b/dev-php/phpunit-mock-objects/metadata.xml new file mode 100644 index 000000000000..b86acf66c756 --- /dev/null +++ b/dev-php/phpunit-mock-objects/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> +</pkgmetadata> diff --git a/dev-php/phpunit-mock-objects/phpunit-mock-objects-3.4.3.ebuild b/dev-php/phpunit-mock-objects/phpunit-mock-objects-3.4.3.ebuild new file mode 100644 index 000000000000..cb34d843139a --- /dev/null +++ b/dev-php/phpunit-mock-objects/phpunit-mock-objects-3.4.3.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="Mock Object library for PHPUnit" +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/Text_Template-1.2 + !>=dev-php/Text_Template-2.0 + <dev-php/doctrine-instantiator-2.0 + <dev-php/sebastian-exporter-3.0 + !<dev-php/phpunit-5.4.0 + >=dev-lang/php-5.6:*" + +src_install() { + insinto /usr/share/php/PHPUnit/ + doins -r src/* + insinto /usr/share/php/PHPUnit/Framework/MockObject + doins "${FILESDIR}/autoload.php" +} |