Permalink
Browse files

Add test for #13361 and #19330

git-svn-id: https://svn.php.net/repository/pear/packages/Archive_Tar/trunk@324837 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 8b1609d commit 19c5515d26b40db1622944b5ce5160b090aebd9e @mrook mrook committed Apr 5, 2012
Showing with 21 additions and 0 deletions.
  1. +20 −0 tests/invalidblock.phpt
  2. +1 −0 tests/testblock1/a.txt
  3. BIN tests/testblock1/bugTriggeringPng.png
View
@@ -0,0 +1,20 @@
+--TEST--
+test files that happen to contain the endblock
+--SKIPIF--
+--FILE--
+<?php
+require_once dirname(__FILE__) . '/setup.php.inc';
+$tar = new Archive_Tar(dirname(__FILE__) . '/testblock.tar.gz');
+$tar->add('testblock1');
+$tar->add('testblock2');
+$tar = new Archive_Tar(dirname(__FILE__) . '/testblock.tar.gz');
+$tar->listContent();
+$phpunit->assertNoErrors('after');
+echo 'tests done';
+?>
+--CLEAN--
+<?php
+@unlink('testblock.tar.gz');
+?>
+--EXPECT--
+tests done
View
@@ -0,0 +1 @@
+abc
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 19c5515

Please sign in to comment.