1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-17 08:01:36 +00:00

- add p5-Mock-Quick

Mock-Object provides a declarative mocking interface that results in a
very concise, but clear syntax. There are seperate facilities for
mocking object instances, and classes. You can quickly create an
instance of an object with custom attributes and methods. You can also
quickly create an anonymous class, optionally inhereting from another,
with whatever methods you desire.

Mock-Object also provides a tool that provides an OO interface to
overriding methods in existing classes. This tool also allows for the
restoration of the original class methods. Best of all this is a
localized tool, when your control object falls out of scope the original
class is restored.

WWW: http://search.cpan.org/dist/Mock-Quick/
This commit is contained in:
Cheng-Lung Sung 2011-02-17 02:41:29 +00:00
parent 3cfcd74668
commit a99a240f4b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=269262
5 changed files with 55 additions and 0 deletions

View File

@ -1890,6 +1890,7 @@
SUBDIR += p5-Method-Signatures-Simple
SUBDIR += p5-Mixin-Linewise
SUBDIR += p5-Mknod
SUBDIR += p5-Mock-Quick
SUBDIR += p5-Module-Build
SUBDIR += p5-Module-Build-Convert
SUBDIR += p5-Module-Build-Kwalitee

View File

@ -0,0 +1,29 @@
# New ports collection makefile for: p5-Mock-Quick
# Date Created: 17 Feb, 2011
# Whom: Cheng-Lung Sung <clsung@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= Mock-Quick
PORTVERSION= 1.001
CATEGORIES= devel perl5
MASTER_SITES= CPAN
MASTER_SITE_SUBDIR= ../by-authors/id/E/EX/EXODIST
PKGNAMEPREFIX= p5-
MAINTAINER= clsung@FreeBSD.org
COMMENT= Quickly mock objects and classes
RUN_DEPENDS= p5-Exporter-Declare>=0:${PORTSDIR}/devel/p5-Exporter-Declare
BUILD_DEPENDS= ${RUN_DEPENDS}
PERL_MODBUILD= yes
MAN3= Mock::Quick.3 Object::Quick.3 \
Mock::Quick::Class.3 \
Mock::Quick::Method.3 \
Mock::Quick::Object.3 \
Mock::Quick::Util.3
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (Mock-Quick-1.001.tar.gz) = 8831e5a57cf2b54300ca8f41001134c85d83dd44518ea82edddb46c3c1f4a0de
SIZE (Mock-Quick-1.001.tar.gz) = 10345

View File

@ -0,0 +1,14 @@
Mock-Object provides a declarative mocking interface that results in a
very concise, but clear syntax. There are seperate facilities for
mocking object instances, and classes. You can quickly create an
instance of an object with custom attributes and methods. You can also
quickly create an anonymous class, optionally inhereting from another,
with whatever methods you desire.
Mock-Object also provides a tool that provides an OO interface to
overriding methods in existing classes. This tool also allows for the
restoration of the original class methods. Best of all this is a
localized tool, when your control object falls out of scope the original
class is restored.
WWW: http://search.cpan.org/dist/Mock-Quick/

View File

@ -0,0 +1,9 @@
%%SITE_PERL%%/Mock/Quick.pm
%%SITE_PERL%%/Mock/Quick/Class.pm
%%SITE_PERL%%/Mock/Quick/Method.pm
%%SITE_PERL%%/Mock/Quick/Object.pm
%%SITE_PERL%%/Mock/Quick/Util.pm
%%SITE_PERL%%/Object/Quick.pm
@dirrmtry %%SITE_PERL%%/Object
@dirrm %%SITE_PERL%%/Mock/Quick
@dirrmtry %%SITE_PERL%%/Mock