3 # This file is part of POE::Component::Client::MPD.
4 # Copyright (c) 2007 Jerome Quelin, all rights reserved.
6 # This program is free software; you can redistribute it and/or modify
7 # it under the same terms as Perl itself.
14 use POE::Component::Client::MPD::Stats;
15 use Test::More tests => 8;
25 db_update => 1175631570,
28 my $s = POE::Component::Client::MPD::Stats->new( \%kv );
29 isa_ok( $s, 'POE::Component::Client::MPD::Stats', 'object creation' );
30 is( $s->artists, 3, 'accessor: artists' );
31 is( $s->albums, 2, 'accessor: albums' );
32 is( $s->songs, 4, 'accessor: songs' );
33 is( $s->uptime, 10002, 'accessor: uptime' );
34 is( $s->playtime, 5, 'accessor: playtime' );
35 is( $s->db_playtime, 8, 'accessor: db_playtime' );
36 is( $s->db_update, 1175631570, 'accessor: db_update' );