Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
stopServer example
$fs
->
remove
(
$this
->workspaceDir
)
;
$fs
->
mkdir
(
$this
->workspaceDir
)
;
$this
->
initMink
(
)
;
}
/** * {@inheritdoc} */
protected
function
tearDown
(
)
: void
{
parent::
tearDown
(
)
;
$this
->
stopServer
(
)
;
foreach
(
$this
->portLocks
as
$lock
)
{
$lock
->
release
(
)
;
}
$ws
=
$this
->
getWorkspaceDirectory
(
)
;
$fs
=
new
SymfonyFilesystem
(
)
;
if
(
$this
->destroyBuild &&
$fs
->
exists
(
$ws
)
)
{
// Filter out symlinks as chmod cannot alter them.
$finder
=
new
Finder
(
)
;
$finder
->
in
(
$ws
)
->
directories
(
)
->
ignoreVCS
(
FALSE
)