summaryrefslogtreecommitdiffstats
path: root/t/warnings.t
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-07-15 15:33:32 -0400
committerJesse Luehrs <doy@tozt.net>2013-07-15 15:33:32 -0400
commite565af54b1ebba7c6c9e69a984e739f57c12135a (patch)
treea22fa984fc7bae8d2fd06491efbac43b8e1a45b5 /t/warnings.t
parentfad76cca11cf9061a190e14eb7e2c4fa4f1747f2 (diff)
downloadpackage-stash-e565af54b1ebba7c6c9e69a984e739f57c12135a.tar.gz
package-stash-e565af54b1ebba7c6c9e69a984e739f57c12135a.zip
sync test suite
Diffstat (limited to 't/warnings.t')
-rw-r--r--t/warnings.t21
1 files changed, 21 insertions, 0 deletions
diff --git a/t/warnings.t b/t/warnings.t
new file mode 100644
index 0000000..2dd5929
--- /dev/null
+++ b/t/warnings.t
@@ -0,0 +1,21 @@
+#!/usr/bin/env perl
+use strict;
+use warnings;
+use Test::More;
+
+use Package::Stash;
+
+my $warnings;
+BEGIN {
+ $warnings = '';
+ $SIG{__WARN__} = sub { $warnings .= $_[0] };
+}
+
+BEGIN {
+ my $stash = Package::Stash->new('Foo');
+ $stash->get_or_add_symbol('$bar');
+}
+
+is($warnings, '');
+
+done_testing;