X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F30dbicplain.t;h=9379e1ca9cd294b8a812df4c34d3f864fe976f59;hb=97c96475ed1bdd955ba0e6c4f22087ca05c64162;hp=aa3016914492a09887d00efa87537539b304bbb9;hpb=1752dc152f9e6f4c9235f5b1f742820ba3b05c8d;p=dbsrgits%2FDBIx-Class.git diff --git a/t/30dbicplain.t b/t/30dbicplain.t index aa30169..9379e1c 100644 --- a/t/30dbicplain.t +++ b/t/30dbicplain.t @@ -1,12 +1,19 @@ -#!/usr/bin/perl - use strict; use warnings; use Test::More; use lib qw(t/lib); -use DBICTest::Plain; -plan tests => 1; +plan tests => 3; + +my @warnings; + +{ + local $SIG{__WARN__} = sub { push(@warnings, $_[0]); }; + require DBICTest::Plain; +} +like($warnings[0], qr/compose_connection deprecated as of 0\.08000/, + 'deprecation warning emitted ok'); +cmp_ok(@warnings, '==', 1, 'no unexpected warnings'); cmp_ok(DBICTest::Plain->resultset('Test')->count, '>', 0, 'count is valid');