use warnings;
use strict;
-use Test::More tests => 1;
+use Test::More tests => 2;
use File::Find;
use Cwd;
use C4::TTParser;
while ( my $token = $parser->next_token ) {
my $attr = $token->{_attr};
next unless $attr;
- push @lines, $token->{_lc} if $attr->{'[%'};
+ push @lines, $token->{_lc} if $attr->{'[%'} or $attr->{'[%-'};
}
($dir) = $dir =~ /koha-tmpl\/(.*)$/;
push @files, { name => "$dir/$name", lines => \@lines } if @lines;
} @files_with_directive_in_tag )
);
+my $testtoken = 0;
+my $ttparser = C4::TTParser->new();
+$ttparser->unshift_token($testtoken);
+my $testtokenagain = C4::TTParser::next_token();
+is( $testtoken, $testtokenagain, "Token received same as original put on stack");
=head1 NAME