Initial Drupal 11 with DDEV setup
This commit is contained in:
24
vendor/pear/archive_tar/tests/symlink.phpt
vendored
Normal file
24
vendor/pear/archive_tar/tests/symlink.phpt
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
--TEST--
|
||||
test symbolic links
|
||||
--SKIPIF--
|
||||
--FILE--
|
||||
<?php
|
||||
require_once dirname(__FILE__) . '/setup.php.inc';
|
||||
$me = dirname(__FILE__) . '/testit';
|
||||
$tar = new Archive_Tar(dirname(__FILE__) . '/testsymlink.tar');
|
||||
$tar->extract();
|
||||
$phpunit->assertNoErrors('after');
|
||||
$phpunit->assertFileExists('testme', 'dir');
|
||||
$phpunit->assertFileExists('testme/file1.txt', 'file1.txt');
|
||||
$phpunit->assertFileExists('testme/symlink.txt', 'symlink.txt');
|
||||
$phpunit->assertTrue(is_link('testme/symlink.txt'), 'is link');
|
||||
echo 'tests done';
|
||||
?>
|
||||
--CLEAN--
|
||||
<?php
|
||||
@unlink('testme/file1.txt');
|
||||
@unlink('testme/symlink.txt');
|
||||
@rmdir('testme');
|
||||
?>
|
||||
--EXPECT--
|
||||
tests done
|
||||
Reference in New Issue
Block a user