File: show_plan_in_shutdown.t

package info (click to toggle)
libtest-class-perl 0.35-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 476 kB
  • ctags: 102
  • sloc: perl: 1,668; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 349 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /usr/bin/perl -T

use strict;
use warnings FATAL => 'all';
use Test::More tests => 1;

my $shutdown_has_run;

{   package My::Test;
    use base qw( Test::Class );
    use Test::More;
    
    sub shutdown :Test( shutdown ) {
        $shutdown_has_run = 1;
    }
    
}

My::Test->runtests( +1 );
ok $shutdown_has_run, "shutdown method has run";