mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
allow getting acls of files
This commit is contained in:
parent
acd992ad8c
commit
3c5e45dc54
12 changed files with 237 additions and 13 deletions
|
|
@ -23,6 +23,7 @@ class ParserTest extends \PHPUnit_Framework_TestCase {
|
|||
['RAH', IFileInfo::MODE_READONLY | IFileInfo::MODE_ARCHIVE | IFileInfo::MODE_HIDDEN]
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider modeProvider
|
||||
*/
|
||||
|
|
@ -108,7 +109,10 @@ class ParserTest extends \PHPUnit_Framework_TestCase {
|
|||
'c.pdf',
|
||||
29634,
|
||||
strtotime('12 Oct 2013 19:05:58 CEST'),
|
||||
IFileInfo::MODE_NORMAL
|
||||
IFileInfo::MODE_NORMAL,
|
||||
function () {
|
||||
return [];
|
||||
}
|
||||
)
|
||||
]
|
||||
]
|
||||
|
|
@ -120,6 +124,8 @@ class ParserTest extends \PHPUnit_Framework_TestCase {
|
|||
*/
|
||||
public function testDir($output, $dir) {
|
||||
$parser = new \Icewind\SMB\Wrapped\Parser('CEST');
|
||||
$this->assertEquals($dir, $parser->parseDir($output, ''));
|
||||
$this->assertEquals($dir, $parser->parseDir($output, '', function () {
|
||||
return [];
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue