use strict; use Plack::Test; use Test::More; use HTTP::Request::Common; use Plack::Middleware::iPhone; use Plack::Builder; my $app = sub { return [ 200, [ 'Content-Type' => 'text/html' ], [ < HTML my $wrapped = builder { enable "iPhone", icon => 'icon.png', tidy => 1, startup_image => 'loading.png'; $app; }; test_psgi $wrapped, sub { my $cb = shift; my $res = $cb->(GET "/"); is $res->code, 200; is $res->content, < HTML }; done_testing;