File: rt15870.t

package info (click to toggle)
libtest-class-perl 0.47-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 516 kB
  • ctags: 110
  • sloc: perl: 1,984; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 373 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /usr/bin/perl

use strict;
use warnings;
use Test::Exception tests => 1;

{   package SomeClassThatDefinesNew;
    sub new { return bless {}, shift };
}

{   package TestClassWithBrokenMI;
    use base qw( SomeClassThatDefinesNew Test::Class ); 
}

throws_ok { Test::Class->runtests } qr/Test::Class internals seem confused/,
    'sensible error if new() is overridden';