1Test::Stream::Plugin::CUlsaesrs(C3o)ntributed Perl DocumTeenstta:t:iSotnream::Plugin::Class(3)
2
3
4

NAME

6       Test::Stream::Plugin::Class - Plugin for loading and aliasing the
7       package you are testing.
8

DEPRECATED

10       This distribution is deprecated in favor of Test2, Test2::Suite, and
11       Test2::Workflow.
12
13       See Test::Stream::Manual::ToTest2 for a conversion guide.
14

DESCRIPTION

16       This plugin lets you designate a class as the class you are testing.
17       The plugin will load the class, and provide shortcuts for accessing it.
18       Other plugins can also make use of the exports to be smarter.
19

SYNOPSIS

21           use Test::Stream Class => ['Package::You::Are::Testing'];
22
23           # You can access the class name using either the $CLASS variable, or the
24           # CLASS() function.
25           can_ok(CLASS(), qr/foo bar/);
26           isa_ok($CLASS,  'Package::Parent');
27

EXPORTS

29       $class = CLASS()
30           This function returns the class name.
31
32       $CLASS
33           This package variable contains the class name.
34

SOURCE

36       The source code repository for Test::Stream can be found at
37       http://github.com/Test-More/Test-Stream/.
38

MAINTAINERS

40       Chad Granum <exodist@cpan.org>
41

AUTHORS

43       Chad Granum <exodist@cpan.org>
44
46       Copyright 2015 Chad Granum <exodist7@gmail.com>.
47
48       This program is free software; you can redistribute it and/or modify it
49       under the same terms as Perl itself.
50
51       See http://dev.perl.org/licenses/
52
53
54
55perl v5.30.1                      2020-01-30    Test::Stream::Plugin::Class(3)
Impressum