Update failing tests (by author/import-moose-tests.pl)
[gitmo/Mouse.git] / Moose-t-failing / 300_immutable / 011_constructor_is_wrapped.t
diff --git a/Moose-t-failing/300_immutable/011_constructor_is_wrapped.t b/Moose-t-failing/300_immutable/011_constructor_is_wrapped.t
new file mode 100644 (file)
index 0000000..a9ee49a
--- /dev/null
@@ -0,0 +1,36 @@
+#!/usr/bin/perl
+# This is automatically generated by author/import-moose-test.pl.
+# DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!!
+use t::lib::MooseCompat;
+
+use strict;
+use warnings;
+
+use Test::More;
+$TODO = q{Mouse is not yet completed};
+
+use Test::Requires {
+    'Test::Output' => '0.01', # skip all if not installed
+};
+
+{
+    package ModdedNew;
+    use Mouse;
+
+    before 'new' => sub { };
+}
+
+{
+    package Foo;
+    use Mouse;
+
+    extends 'ModdedNew';
+
+    ::stderr_like(
+        sub { Foo->meta->make_immutable },
+        qr/\QNot inlining 'new' for Foo since it has method modifiers which would be lost if it were inlined/,
+        'got a warning that Foo may not have an inlined constructor'
+    );
+}
+
+done_testing;