mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-15 16:07:55 +03:00
Clean-up tests and use PHPStan max level for tests
This commit is contained in:
@@ -2,14 +2,13 @@
|
||||
|
||||
namespace Ramsey\Uuid\Test\Provider\Time;
|
||||
|
||||
use AspectMock\Test as AspectMock;
|
||||
use Ramsey\Uuid\Provider\Time\SystemTimeProvider;
|
||||
use Ramsey\Uuid\Test\TestCase;
|
||||
use AspectMock\Test as AspectMock;
|
||||
|
||||
class SystemTimeProviderTest extends TestCase
|
||||
{
|
||||
|
||||
public function testCurrentTimeReturnsTimestampArray()
|
||||
public function testCurrentTimeReturnsTimestampArray(): void
|
||||
{
|
||||
$provider = new SystemTimeProvider();
|
||||
$time = $provider->currentTime();
|
||||
@@ -21,7 +20,7 @@ class SystemTimeProviderTest extends TestCase
|
||||
* @runInSeparateProcess
|
||||
* @preserveGlobalState disabled
|
||||
*/
|
||||
public function testCurrentTimeUsesGettimeofday()
|
||||
public function testCurrentTimeUsesGettimeofday(): void
|
||||
{
|
||||
$timestamp = ['sec' => 1458844556, 'usec' => 200997];
|
||||
$func = AspectMock::func('Ramsey\Uuid\Provider\Time', 'gettimeofday', $timestamp);
|
||||
|
||||
Reference in New Issue
Block a user