]> Dogcows Code - chaz/p5-HTTP-AnyUA/blob - t/40-middleware-runtime.t
change an instance of "and" to "&&"
[chaz/p5-HTTP-AnyUA] / t / 40-middleware-runtime.t
1 #!perl
2
3 use warnings;
4 use strict;
5
6 use lib 't/lib';
7
8 use HTTP::AnyUA;
9 use Test::More tests => 1;
10
11 HTTP::AnyUA->register_backend(Mock => '+MockBackend');
12
13 my $any_ua = HTTP::AnyUA->new(ua => 'Mock');
14 my $backend = $any_ua->backend;
15
16 $any_ua->apply_middleware('Runtime');
17
18 my $url = 'http://acme.tld/';
19
20 my $resp = $any_ua->get($url);
21 note explain $resp;
22 isnt $resp->{runtime}, undef, 'runtime is defined';
23
This page took 0.02873 seconds and 4 git commands to generate.