Add CallableProvider trait for tests
This commit is contained in:
parent
af2708e7e8
commit
dd48e20b8f
13
src/Tests/Tools/CallableProvider.php
Normal file
13
src/Tests/Tools/CallableProvider.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace Toalett\Multiprocessing\Tests\Tools;
|
||||
|
||||
trait CallableProvider
|
||||
{
|
||||
protected static function emptyCallable(): callable
|
||||
{
|
||||
static $fn = null;
|
||||
$fn ??= static fn() => null;
|
||||
return $fn;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user