File: 26_ttl.t

package info (click to toggle)
libticket-simple-perl 0.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 172 kB
  • ctags: 14
  • sloc: perl: 397; makefile: 7
file content (18 lines) | stat: -rw-r--r-- 367 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!perl -w

use warnings;
use strict;
use Test::More tests => 4;

BEGIN {
    use_ok('Ticket::Simple');
}

my $ts = Ticket::Simple->new( { ttl => 2000 } );
ok( $ts, 'new with ttl param works' );
my $ttl = $ts->get_ttl;
ok( $ttl == 2000, '- got ttl out of the sytsem' );
$ts->set_ttl(3000);
my $ttl2 = $ts->get_ttl;
ok( $ttl2 == 3000, '- got ttl out of the sytsem' );