Permalink
Browse files

moar testing

  • Loading branch information...
1 parent a81eeeb commit 501d725264ac3f8b2e9d07a958f290629a55c46b @holdenk committed Sep 8, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 t/PHP.t
View
@@ -1,7 +1,7 @@
#Test the shell script thing
-use Test::More tests => 5;
+use Test::More tests => 4;
use File::Temp;
-use Unicorn::PHP qw( fix_php check_php);
+use Unicorn::PHP qw(fix_php check_php);
use File::Slurp qw (slurp);
use strict;
@@ -27,6 +27,9 @@ while (my $file = readdir($php_input_files)) {
slurp("$dirname/php_evaluated/$file.out"));
is(slurp("$dirname/php_output/$file"),
slurp("$dirname/php_expected/$file"));
+ #Make sure we git added the file
+ my $gstatus = `cd $dirname/php_output;git status`;
+ is($gstatus =~ /new file:\s*magicSecureStringCompare\.php/,1);
}
}

0 comments on commit 501d725

Please sign in to comment.