Fix a typo
[gitmo/Mouse.git] / Moose-t-failing / 300_immutable / 011_constructor_is_wrapped.t
CommitLineData
1743c026 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!!!
4use t::lib::MooseCompat;
5
6use strict;
7use warnings;
8
9use Test::More;
10$TODO = q{Mouse is not yet completed};
11
12use 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
36done_testing;