2 ## Bioperl Test Harness Script for Modules
9 test_begin(-tests => 9,
10 -requires_module => 'IO::String');
11 use_ok('Bio::Tools::Run::Phylo::Phylip::Consense');
12 use_ok('Bio::AlignIO');
15 my $verbose = test_debug();
17 my $sb_factory = Bio::Tools::Run::Phylo::Phylip::Consense->new(-verbose => $verbose);
20 test_skip(-requires_executable => $sb_factory,
23 isa_ok($sb_factory,'Bio::Tools::Run::Phylo::Phylip::Consense');
25 $sb_factory->rooted(1);
27 is $sb_factory->rooted, 1, "coludn't set rooted option";
29 $sb_factory->quiet($verbose); # Suppress protpars messages to terminal
31 my $inputfilename = test_input_file("consense.treefile");
32 my $tree = $sb_factory->run($inputfilename);
34 is $tree->number_nodes, 13;
36 my $node = $tree->find_node('CATH_RAT');
37 is $node->branch_length, "10.0";
38 is $node->id, 'CATH_RAT';
40 my @nodes = $tree->get_nodes;