Mercurial > pub > Impl
comparison _test/Test/Config/Container.pm @ 417:3ed0c58e9da3 ref20150831
working on di container, tests
author | cin |
---|---|
date | Mon, 02 Nov 2015 01:56:53 +0300 |
parents | |
children | 3f38dabaf5cc |
comparison
equal
deleted
inserted
replaced
416:cc2cf8c0edc2 | 417:3ed0c58e9da3 |
---|---|
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; |