Skip to content

Commit

Permalink
Use array() symtax in symlink_disallow.phpt
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenson committed Nov 28, 2019
1 parent bf67547 commit f824947
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/symlink_disallow.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ require_once dirname(__FILE__) . '/setup.php.inc';
$me = dirname(__FILE__) . '/testit';
$tar = new Archive_Tar(dirname(__FILE__) . '/testsymlink.tar');
$tar->extract('', false, false);
$phpunit->assertErrors([
[
$phpunit->assertErrors(array(
array(
'package' => 'PEAR_Error',
'message' => 'Symbolic links are not allowed. Unable to extract {testme/symlink.txt}'
],
], 'Warning thrown');
),
), 'Warning thrown');
$phpunit->assertFileExists('testme', 'dir');
$phpunit->assertFileNotExists('testme/file1.txt', 'file1.txt');
$phpunit->assertFileNotExists('testme/symlink.txt', 'symlink.txt');
Expand Down

0 comments on commit f824947

Please sign in to comment.