~ubuntu-branches/ubuntu/maverick/libnet-jabber-loudmouth-perl/maverick

« back to all changes in this revision

Viewing changes to t/07_message_handler.t

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ragwitz
  • Date: 2005-09-07 16:21:12 UTC
  • Revision ID: james.westby@ubuntu.com-20050907162112-m9cq9nbvz9ujpvz8
Tags: upstream-0.06
ImportĀ upstreamĀ versionĀ 0.06

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
use strict;
 
2
use Test::More tests => 3;
 
3
use Net::Jabber::Loudmouth;
 
4
 
 
5
my $handler = Net::Jabber::Loudmouth::MessageHandler->new(sub {});
 
6
isa_ok($handler, "Net::Jabber::Loudmouth::MessageHandler");
 
7
 
 
8
ok($handler->is_valid(), "handler is valid");
 
9
 
 
10
$handler->invalidate();
 
11
 
 
12
ok(!$handler->is_valid(), "handler is invalid");