a9ee49a54124ca1a4702c922ed60a59f30bba567
[gitmo/Mouse.git] / Moose-t-failing / 300_immutable / 011_constructor_is_wrapped.t
1 #!/usr/bin/perl
2 # This is automatically generated by author/import-moose-test.pl.
3 # DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!!
4 use t::lib::MooseCompat;
5
6 use strict;
7 use warnings;
8
9 use Test::More;
10 $TODO = q{Mouse is not yet completed};
11
12 use Test::Requires {
13     'Test::Output' => '0.01', # skip all if not installed
14 };
15
16 {
17     package ModdedNew;
18     use Mouse;
19
20     before 'new' => sub { };
21 }
22
23 {
24     package Foo;
25     use Mouse;
26
27     extends 'ModdedNew';
28
29     ::stderr_like(
30         sub { Foo->meta->make_immutable },
31         qr/\QNot inlining 'new' for Foo since it has method modifiers which would be lost if it were inlined/,
32         'got a warning that Foo may not have an inlined constructor'
33     );
34 }
35
36 done_testing;