+#!/usr/bin/perl -w
use v5.14;
use strict;
use warnings;
BEGIN { use_ok('POE::Component::IRC::Plugin::Hello') };
-# Variable setup
my $hello_sent;
my $mockirc = Test::MockObject->new;
my $self = POE::Component::IRC::Plugin::Hello->new;
my $channels = [ '#chan' ];
-# Sub setup
sub runtest{
my ($message, $expect, $comment) = @_;
$hello_sent=0;
ok($hello_sent == $expect, $comment)
}
-#Tests
runtest 'privet', 1, 'simple privet';
runtest 'PrIvEt', 1, 'privet in mixed case';
runtest ' privet ', 1, 'privet with spaces';