Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
FooLock2Command example
$lock
->
acquire
(
)
;
$tester
=
new
CommandTester
(
$command
)
;
$this
->
assertSame
(
1,
$tester
->
execute
(
[
]
)
)
;
$lock
->
release
(
)
;
$this
->
assertSame
(
2,
$tester
->
execute
(
[
]
)
)
;
}
public
function
testMultipleLockCallsThrowLogicException
(
)
{
$command
=
new
\
FooLock2Command
(
)
;
$tester
=
new
CommandTester
(
$command
)
;
$this
->
assertSame
(
1,
$tester
->
execute
(
[
]
)
)
;
}
}