1 |
commit: 76cc21143177fc8d12428c9c2c8f123188759ef4 |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Mar 9 16:18:03 2017 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 9 16:23:00 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76cc2114 |
7 |
|
8 |
dev-php/phpunit-mock-objects: New package for an unbundled phpunit |
9 |
|
10 |
Package-Manager: Portage-2.3.4, Repoman-2.3.2 |
11 |
|
12 |
dev-php/phpunit-mock-objects/Manifest | 1 + |
13 |
dev-php/phpunit-mock-objects/files/autoload.php | 61 ++++++++++++++++++++++ |
14 |
dev-php/phpunit-mock-objects/metadata.xml | 8 +++ |
15 |
.../phpunit-mock-objects-3.4.3.ebuild | 28 ++++++++++ |
16 |
4 files changed, 98 insertions(+) |
17 |
|
18 |
diff --git a/dev-php/phpunit-mock-objects/Manifest b/dev-php/phpunit-mock-objects/Manifest |
19 |
new file mode 100644 |
20 |
index 00000000000..41754ca1773 |
21 |
--- /dev/null |
22 |
+++ b/dev-php/phpunit-mock-objects/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST phpunit-mock-objects-3.4.3.tar.gz 37921 SHA256 4579a83f32a6b8f0341a51e68a54508cbd313c1d5a72065ebe9bcb9a5b878aad SHA512 c9305796062a9ef412c194a82322c913b695c74fd9505580707381f9d9f96f6d69a16bde2c35226240e3c2bfaa6f0f9bf1c94c178b8a1f050b5afef7e53611de WHIRLPOOL cfed39495826a298b13aa8816541dff3e86d0afb5bd44ebd5f584a53aee4e23229a0c15d1eb1547194ded307d51db8c6118ed6c169457d2e784c1e0ebe4e55c5 |
25 |
|
26 |
diff --git a/dev-php/phpunit-mock-objects/files/autoload.php b/dev-php/phpunit-mock-objects/files/autoload.php |
27 |
new file mode 100644 |
28 |
index 00000000000..96bcae91655 |
29 |
--- /dev/null |
30 |
+++ b/dev-php/phpunit-mock-objects/files/autoload.php |
31 |
@@ -0,0 +1,61 @@ |
32 |
+<?php |
33 |
+/* Autoloader for dev-php/sebastian-diff */ |
34 |
+ |
35 |
+if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { |
36 |
+ require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; |
37 |
+} |
38 |
+ |
39 |
+\Fedora\Autoloader\Autoload::addClassMap( |
40 |
+ array( |
41 |
+ 'phpunit_framework_mockobject_badmethodcallexception' => '/Exception/BadMethodCallException.php', |
42 |
+ 'phpunit_framework_mockobject_builder_identity' => '/Builder/Identity.php', |
43 |
+ 'phpunit_framework_mockobject_builder_invocationmocker' => '/Builder/InvocationMocker.php', |
44 |
+ 'phpunit_framework_mockobject_builder_match' => '/Builder/Match.php', |
45 |
+ 'phpunit_framework_mockobject_builder_methodnamematch' => '/Builder/MethodNameMatch.php', |
46 |
+ 'phpunit_framework_mockobject_builder_namespace' => '/Builder/Namespace.php', |
47 |
+ 'phpunit_framework_mockobject_builder_parametersmatch' => '/Builder/ParametersMatch.php', |
48 |
+ 'phpunit_framework_mockobject_builder_stub' => '/Builder/Stub.php', |
49 |
+ 'phpunit_framework_mockobject_exception' => '/Exception/Exception.php', |
50 |
+ 'phpunit_framework_mockobject_generator' => '/Generator.php', |
51 |
+ 'phpunit_framework_mockobject_invocation' => '/Invocation.php', |
52 |
+ 'phpunit_framework_mockobject_invocationmocker' => '/InvocationMocker.php', |
53 |
+ 'phpunit_framework_mockobject_invocation_object' => '/Invocation/Object.php', |
54 |
+ 'phpunit_framework_mockobject_invocation_static' => '/Invocation/Static.php', |
55 |
+ 'phpunit_framework_mockobject_invokable' => '/Invokable.php', |
56 |
+ 'phpunit_framework_mockobject_matcher' => '/Matcher.php', |
57 |
+ 'phpunit_framework_mockobject_matcher_anyinvokedcount' => '/Matcher/AnyInvokedCount.php', |
58 |
+ 'phpunit_framework_mockobject_matcher_anyparameters' => '/Matcher/AnyParameters.php', |
59 |
+ 'phpunit_framework_mockobject_matcher_consecutiveparameters' => '/Matcher/ConsecutiveParameters.php', |
60 |
+ 'phpunit_framework_mockobject_matcher_invocation' => '/Matcher/Invocation.php', |
61 |
+ 'phpunit_framework_mockobject_matcher_invokedatindex' => '/Matcher/InvokedAtIndex.php', |
62 |
+ 'phpunit_framework_mockobject_matcher_invokedatleastcount' => '/Matcher/InvokedAtLeastCount.php', |
63 |
+ 'phpunit_framework_mockobject_matcher_invokedatleastonce' => '/Matcher/InvokedAtLeastOnce.php', |
64 |
+ 'phpunit_framework_mockobject_matcher_invokedatmostcount' => '/Matcher/InvokedAtMostCount.php', |
65 |
+ 'phpunit_framework_mockobject_matcher_invokedcount' => '/Matcher/InvokedCount.php', |
66 |
+ 'phpunit_framework_mockobject_matcher_invokedrecorder' => '/Matcher/InvokedRecorder.php', |
67 |
+ 'phpunit_framework_mockobject_matcher_methodname' => '/Matcher/MethodName.php', |
68 |
+ 'phpunit_framework_mockobject_matcher_parameters' => '/Matcher/Parameters.php', |
69 |
+ 'phpunit_framework_mockobject_matcher_statelessinvocation' => '/Matcher/StatelessInvocation.php', |
70 |
+ 'phpunit_framework_mockobject_mockbuilder' => '/MockBuilder.php', |
71 |
+ 'phpunit_framework_mockobject_mockobject' => '/MockObject.php', |
72 |
+ 'phpunit_framework_mockobject_runtimeexception' => '/Exception/RuntimeException.php', |
73 |
+ 'phpunit_framework_mockobject_stub' => '/Stub.php', |
74 |
+ 'phpunit_framework_mockobject_stub_consecutivecalls' => '/Stub/ConsecutiveCalls.php', |
75 |
+ 'phpunit_framework_mockobject_stub_exception' => '/Stub/Exception.php', |
76 |
+ 'phpunit_framework_mockobject_stub_matchercollection' => '/Stub/MatcherCollection.php', |
77 |
+ 'phpunit_framework_mockobject_stub_return' => '/Stub/Return.php', |
78 |
+ 'phpunit_framework_mockobject_stub_returnargument' => '/Stub/ReturnArgument.php', |
79 |
+ 'phpunit_framework_mockobject_stub_returncallback' => '/Stub/ReturnCallback.php', |
80 |
+ 'phpunit_framework_mockobject_stub_returnreference' => '/Stub/ReturnReference.php', |
81 |
+ 'phpunit_framework_mockobject_stub_returnself' => '/Stub/ReturnSelf.php', |
82 |
+ 'phpunit_framework_mockobject_stub_returnvaluemap' => '/Stub/ReturnValueMap.php', |
83 |
+ 'phpunit_framework_mockobject_verifiable' => '/Verifiable.php', |
84 |
+ ), |
85 |
+ __DIR__ |
86 |
+); |
87 |
+ |
88 |
+\Fedora\Autoloader\Dependencies::required(array( |
89 |
+ '/usr/share/php/Doctrine/Instantiator/autoload.php', |
90 |
+ '/usr/share/php/SebastianBergmann/Exporter/autoload.php', |
91 |
+ '/usr/share/php/Text/Template/autoload.php', |
92 |
+)); |
93 |
|
94 |
diff --git a/dev-php/phpunit-mock-objects/metadata.xml b/dev-php/phpunit-mock-objects/metadata.xml |
95 |
new file mode 100644 |
96 |
index 00000000000..b86acf66c75 |
97 |
--- /dev/null |
98 |
+++ b/dev-php/phpunit-mock-objects/metadata.xml |
99 |
@@ -0,0 +1,8 @@ |
100 |
+<?xml version="1.0" encoding="UTF-8"?> |
101 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
102 |
+<pkgmetadata> |
103 |
+ <maintainer type="project"> |
104 |
+ <email>php-bugs@g.o</email> |
105 |
+ <name>PHP</name> |
106 |
+ </maintainer> |
107 |
+</pkgmetadata> |
108 |
|
109 |
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 |
110 |
new file mode 100644 |
111 |
index 00000000000..cb34d843139 |
112 |
--- /dev/null |
113 |
+++ b/dev-php/phpunit-mock-objects/phpunit-mock-objects-3.4.3.ebuild |
114 |
@@ -0,0 +1,28 @@ |
115 |
+# Copyright 1999-2017 Gentoo Foundation |
116 |
+# Distributed under the terms of the GNU General Public License v2 |
117 |
+ |
118 |
+EAPI=6 |
119 |
+ |
120 |
+DESCRIPTION="Mock Object library for PHPUnit" |
121 |
+HOMEPAGE="http://phpunit.de" |
122 |
+SRC_URI="https://github.com/sebastianbergmann/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
123 |
+ |
124 |
+LICENSE="BSD" |
125 |
+SLOT="0" |
126 |
+KEYWORDS="~amd64 ~x86" |
127 |
+IUSE="" |
128 |
+ |
129 |
+RDEPEND="dev-php/fedora-autoloader |
130 |
+ >=dev-php/Text_Template-1.2 |
131 |
+ !>=dev-php/Text_Template-2.0 |
132 |
+ <dev-php/doctrine-instantiator-2.0 |
133 |
+ <dev-php/sebastian-exporter-3.0 |
134 |
+ !<dev-php/phpunit-5.4.0 |
135 |
+ >=dev-lang/php-5.6:*" |
136 |
+ |
137 |
+src_install() { |
138 |
+ insinto /usr/share/php/PHPUnit/ |
139 |
+ doins -r src/* |
140 |
+ insinto /usr/share/php/PHPUnit/Framework/MockObject |
141 |
+ doins "${FILESDIR}/autoload.php" |
142 |
+} |