Runtime check to skip the plan, ergo need to runtime import
[catagits/Catalyst-Runtime.git] / t / aggregate / unit_core_script_server-without_modules.t
1 use strict;
2 use warnings;
3 use FindBin qw/$Bin/;
4 use Test::More;
5 use Try::Tiny;
6
7 plan skip_all => "Need Test::Without::Module for this test"
8     unless try { require Test::Without::Module; 1 };
9
10 Test::Without::Module->import(qw(
11     Starman
12     Plack::Handler::Starman
13     MooseX::Daemonize
14     MooseX::Daemonize::Pid::File
15     MooseX::Daemonize::Core
16 ));
17
18 require "$Bin/../aggregate/unit_core_script_server.t";
19
20 Test::Without::Module->unimport(qw(
21     Starman
22     Plack::Handler::Starman
23     MooseX::Daemonize
24     MooseX::Daemonize::Pid::File
25     MooseX::Daemonize::Core
26 ));
27
28 1;
29