X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FTest.pm;h=3962927517adbaea405ee0e4e207d6655298046c;hp=7868e03f7a7b4ed08a2fc0ce47003ac2c6984b4e;hb=d5c1270360c155009fa138b6f0630044304f3c86;hpb=22a5833d436649391dc95877ca33f549308c6c3c diff --git a/lib/Catalyst/Test.pm b/lib/Catalyst/Test.pm index 7868e03..3962927 100644 --- a/lib/Catalyst/Test.pm +++ b/lib/Catalyst/Test.pm @@ -107,6 +107,12 @@ our $default_host; sub import { my ($self, $class, $opts) = @_; + Carp::carp( +qq{Importing Catalyst::Test without an application name is deprecated:\n +Instead of saying: use Catalyst::Test; +say: use Catalyst::Test (); # If you don't want to import a test app right now. +or say: use Catalyst::Test 'MyApp'; # If you do want to import a test app.\n\n}) + unless $class; $import->($self, '-all' => { class => $class }); $opts = {} unless ref $opts eq 'HASH'; $default_host = $opts->{default_host} if exists $opts->{default_host};