update foreign tests
[p5sagit/Function-Parameters.git] / t / foreign / Method-Signatures / into.t
diff --git a/t/foreign/Method-Signatures/into.t b/t/foreign/Method-Signatures/into.t
new file mode 100644 (file)
index 0000000..c202e42
--- /dev/null
@@ -0,0 +1,21 @@
+#!perl
+use strict;
+use warnings FATAL => 'all';
+
+# Importing always affects the currently compiling scope.
+
+package Foo;
+
+use Test::More 'no_plan';
+
+BEGIN {
+    package Bar;
+    require Function::Parameters;
+    Function::Parameters->import;
+}
+
+is( Foo->foo(42), 42 );
+
+method foo ($arg) {
+    return $arg;
+}