--- /dev/null
+use strict;
+use warnings FATAL => 'all';
+
+use Test::More 'no_plan';
+use Plack::Test;
+
+{
+ use Web::Simple 'IncTest';
+ package IncTest;
+ sub dispatch_request {
+ sub (GET) {
+ [ 200,
+ [ "Content-type" => "text/plain" ],
+ [ $INC{'IncTest.pm'} ]
+ ]
+ },
+ }
+}
+
+my $app = IncTest->new;
+
+is $app->run_test_request(GET => 'http://localhost/')->decoded_content, __FILE__;