Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getFileGroup example
$this
->filesystem->
chown
(
$dir
, 'user'.
time
(
)
.
mt_rand
(
1000, 9999
)
)
;
}
public
function
testChgrpByName
(
)
{
$this
->
markAsSkippedIfPosixIsMissing
(
)
;
$dir
=
$this
->workspace.\DIRECTORY_SEPARATOR.'dir';
mkdir
(
$dir
)
;
$group
=
$this
->
getFileGroup
(
$dir
)
;
$this
->filesystem->
chgrp
(
$dir
,
$group
)
;
$this
->
assertSame
(
$group
,
$this
->
getFileGroup
(
$dir
)
)
;
}
public
function
testChgrpById
(
)
{
$this
->
markAsSkippedIfPosixIsMissing
(
)
;
$dir
=
$this
->workspace.\DIRECTORY_SEPARATOR.'dir';
mkdir
(
$dir
)
;