417
|
1 package Test::Config::Container;
|
|
2 use strict;
|
|
3
|
|
4 {
|
|
5 package Test::Config::Container::Baz;
|
|
6 use IMPL::declare {
|
|
7 base => {
|
|
8 'IMPL::Object' => undef
|
|
9 },
|
|
10 props => [
|
|
11 value => 'r'
|
|
12 ]
|
|
13 };
|
|
14
|
|
15 sub CTOR {
|
|
16 my $this = shift;
|
|
17 $this->value(shift);
|
|
18 }
|
|
19 }
|
|
20
|
|
21 use IMPL::declare {
|
|
22 require => {
|
|
23 Container => 'IMPL::Config::Container'
|
|
24 },
|
|
25 base => {
|
|
26 'IMPL::Test::Unit' => '@_'
|
|
27 }
|
|
28 };
|
|
29 use IMPL::Test qw(test assert failed);
|
|
30
|
|
31 test CreateContainer => sub {
|
|
32 my $c1 = Container->new();
|
|
33 };
|
|
34
|
|
35 sub RegisterServices {
|
|
36 my $c1 = Container->new();
|
|
37 }
|
|
38
|
|
39
|
|
40 1; |