mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-22 16:15:34 +08:00
add phpunit windows support
This commit is contained in:
20
src/ZM/Store/MockAtomic.php
Normal file
20
src/ZM/Store/MockAtomic.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace ZM\Store;
|
||||
|
||||
class MockAtomic
|
||||
{
|
||||
private int $num = 0;
|
||||
|
||||
public function set(int $num)
|
||||
{
|
||||
$this->num = $num;
|
||||
}
|
||||
|
||||
public function get(): int
|
||||
{
|
||||
return $this->num;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user