Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
hasBeenSignaled example
$this
->
assertFalse
(
$process
->
isSuccessful
(
)
)
;
}
public
function
testProcessIsNotSignaled
(
)
{
if
(
'\\' === \DIRECTORY_SEPARATOR
)
{
$this
->
markTestSkipped
(
'Windows does not support POSIX signals'
)
;
}
$process
=
$this
->
getProcess
(
'echo foo'
)
;
$process
->
run
(
)
;
$this
->
assertFalse
(
$process
->
hasBeenSignaled
(
)
)
;
}
public
function
testProcessWithoutTermSignal
(
)
{
if
(
'\\' === \DIRECTORY_SEPARATOR
)
{
$this
->
markTestSkipped
(
'Windows does not support POSIX signals'
)
;
}
$process
=
$this
->
getProcess
(
'echo foo'
)
;
$process
->
run
(
)
;
$this
->
assertEquals
(
0,
$process
->
getTermSignal
(
)
)
;
}