6 use Test::More tests => 3;
17 has 'array' => (is => 'ro');
18 has 'hash' => (is => 'ro');
24 use Moose::Util::TypeConstraints;
28 => where { $_->isa('HTTPHeader') };
32 => via { HTTPHeader->new(array => $_[0]) }
34 => via { HTTPHeader->new(hash => $_[0]) };
41 default => sub { [ 'content-type', 'text/html' ] }
46 isa_ok($r, 'Request');
50 } '... this coerces and passes the type constraint even with lazy';