Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getFileOwner example
$this
->
assertFilePermissions
(
753,
$subdirectory
)
;
}
public
function
testChownByName
(
)
{
$this
->
markAsSkippedIfPosixIsMissing
(
)
;
$dir
=
$this
->workspace.\DIRECTORY_SEPARATOR.'dir';
mkdir
(
$dir
)
;
$owner
=
$this
->
getFileOwner
(
$dir
)
;
$this
->filesystem->
chown
(
$dir
,
$owner
)
;
$this
->
assertSame
(
$owner
,
$this
->
getFileOwner
(
$dir
)
)
;
}
public
function
testChownById
(
)
{
$this
->
markAsSkippedIfPosixIsMissing
(
)
;
$dir
=
$this
->workspace.\DIRECTORY_SEPARATOR.'dir';
mkdir
(
$dir
)
;