push @mock::calls, ref($self) . "::new( '@_' )";
}
+ $self->{file} = shift;
+
return $self;
}
local $" = "', '";
push @mock::calls, ref($self) . "::close( '@_' )";
}
+
+ if ( ref $self->{file} ) {
+ my $fh = $self->{file};
+ print $fh join "\n", @mock::calls, '';
+ }
}
sub add_worksheet {