]> granicus.if.org Git - php/commitdiff
fix test (all tests pass on unix now)
authorGreg Beaver <cellog@php.net>
Tue, 12 Feb 2008 05:30:59 +0000 (05:30 +0000)
committerGreg Beaver <cellog@php.net>
Tue, 12 Feb 2008 05:30:59 +0000 (05:30 +0000)
ext/phar/tests/zip/phar_stub_error.phpt

index 50d0cb1b010bbc7b03e9711b1225c48a75f3efba..268130df40bca3b1f796ce6134ec9b51742740dd 100755 (executable)
@@ -11,7 +11,7 @@ phar.readonly=0
 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.zip';
 
 $phar = new Phar($fname);
-$phar->setStub($stub = '<?php echo "first stub\n"; __HALT_COMPILER(); ?>');
+$phar->setStub($stub = '<?php echo "first stub\n"; __HALT_COMPILER(); ?>' . "\r\n");
 $phar->setAlias('hio');
 $phar['a'] = 'a';
 $phar->stopBuffering();
@@ -43,12 +43,16 @@ unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.zip')
 __HALT_COMPILER();
 ?>
 --EXPECTF--
-string(48) "<?php echo "first stub\n"; __HALT_COMPILER(); ?>"
-string(48) "<?php echo "first stub\n"; __HALT_COMPILER(); ?>"
+string(50) "<?php echo "first stub\n"; __HALT_COMPILER(); ?>
+"
+string(50) "<?php echo "first stub\n"; __HALT_COMPILER(); ?>
+"
 bool(true)
 Exception: illegal stub for zip-based phar "%sphar_stub_error.phar.zip"
-string(48) "<?php echo "first stub\n"; __HALT_COMPILER(); ?>"
+string(50) "<?php echo "first stub\n"; __HALT_COMPILER(); ?>
+"
 bool(true)
-string(48) "<?php echo "first stub\n"; __HALT_COMPILER(); ?>"
+string(50) "<?php echo "first stub\n"; __HALT_COMPILER(); ?>
+"
 bool(true)
 ===DONE===