Upgrade to Test-Simple-0.82.
[p5sagit/p5-mst-13.2.git] / lib / Test / Simple / t / BEGIN_require_ok.t
CommitLineData
705e6672 1#!/usr/bin/perl -w
ccbd73a4 2# $Id: /mirror/googlecode/test-more/t/BEGIN_require_ok.t 57943 2008-08-18T02:09:22.275428Z brooklyn.kid51 $
705e6672 3
4BEGIN {
5 if( $ENV{PERL_CORE} ) {
6 chdir 't';
7 @INC = ('../lib', 'lib');
8 }
9 else {
10 unshift @INC, 't/lib';
11 }
12}
13
14use Test::More;
15
16my $result;
17BEGIN {
18 eval {
19 require_ok("Wibble");
20 };
21 $result = $@;
22}
23
24plan tests => 1;
25like $result, '/^You tried to run a test without a plan/';