From b5d66ba6e274eed251da951bb943b9ff67765290 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 18 Jul 2012 16:22:08 -0500 Subject: import the Plack::Request test suite --- t/double_port.t | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 t/double_port.t (limited to 't/double_port.t') diff --git a/t/double_port.t b/t/double_port.t new file mode 100644 index 0000000..2bb1c82 --- /dev/null +++ b/t/double_port.t @@ -0,0 +1,24 @@ +#!/usr/bin/env perl +use Test::More; +use Plack::Test; + +use HTTP::Request::Common; +use Web::Request; + +$Plack::Test::Impl = 'Server'; +local $ENV{PLACK_SERVER} = "HTTP::Server::PSGI"; + +my $app = sub { + my $req = Web::Request->new_from_env(shift); + return [200, [], [ $req->uri ]]; +}; + +test_psgi app => $app, client => sub { + my $cb = shift; + my $res = $cb->(GET "http://localhost/foo"); + ok $res->content !~ /:\d+:\d+/; +}; + +done_testing; + + -- cgit v1.2.3-54-g00ecf