| 1 | 1 | ▶ | use 5.008; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | package Class::Scaffold::Environment_TEST; | ||
| 6 | 1 | ▶ | BEGIN { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | $Class::Scaffold::Environment_TEST::VERSION = '1.102280'; | |
| 8 | } | ||
| 9 | # ABSTRACT: Companion test class for the framework environment base class | ||
| 10 | 1 | ▶ | use Error::Hierarchy::Test 'throws2_ok'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 1 | ▶ | use Test::More; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | 1 | ▶ | use parent 'Class::Scaffold::Test'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | use constant PLAN => 1; | ||
| 14 | |||
| 15 | sub run { | ||
| 16 | my $self = shift; | ||
| 17 | $self->SUPER::run(@_); | ||
| 18 | throws2_ok { $self->delegate->make_obj(foobar => 'abc') } | ||
| 19 | 'Error::Hierarchy::Internal::CustomMessage', | ||
| 20 | qr/Factory type 'foobar' is not defined/, | ||
| 21 | 'trying to make an object of an unknown object type'; | ||
| 22 | } | ||
| 23 | 1; | ||
| 24 | |||
| 25 | __END__ | ||