protected static string
$fixturesPath;
public static function setUpBeforeClass(): void
{ self::
$fixturesPath = __DIR__.'/../Fixtures/';
require_once self::
$fixturesPath.'/FooLockCommand.php';
require_once self::
$fixturesPath.'/FooLock2Command.php';
} public function testLockIsReleased() { $command =
new \
FooLockCommand();
$tester =
new CommandTester($command);
$this->
assertSame(2,
$tester->
execute([]));
$this->
assertSame(2,
$tester->
execute([]));
} public function testLockReturnsFalseIfAlreadyLockedByAnotherCommand() { $command =
new \
FooLockCommand();
if (SemaphoreStore::
isSupported()) {