File: runtests_with_wrong_class.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 (11 lines) | stat: -rw-r--r-- 276 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
#! /usr/bin/perl -T

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

BEGIN { use_ok 'Test::Class' };

dies_ok { Test::Class->runtests( 'Not::A::Test::Class' ) } 
    'runtests dies if we are given something that is not a test class';