5 use Test::More tests => 4;
11 my $CLASS = 'Excel::Template';
14 my $object = $CLASS->new(
15 filename => 't/008.xml',
17 isa_ok( $object, $CLASS );
19 ok( $object->write_file( 'filename' ), 'Something returned' );
21 my @calls = mock->get_calls;
22 is( join( $/, @calls, '' ), <<__END_EXPECTED__, 'Calls match up' );
23 Spreadsheet::WriteExcel::new( 'filename' )
24 Spreadsheet::WriteExcel::add_format( '' )
25 Spreadsheet::WriteExcel::add_worksheet( 'formula' )
26 Spreadsheet::WriteExcel::Worksheet::new( '' )
27 Spreadsheet::WriteExcel::Worksheet::write_formula( '0', '0', 'Test1', '1' )
28 Spreadsheet::WriteExcel::Worksheet::write_formula( '0', '1', 'Test2', '1' )
29 Spreadsheet::WriteExcel::Worksheet::write_formula( '0', '2', '', '1' )
30 Spreadsheet::WriteExcel::close( '' )