mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-26 17:46:38 +03:00
chore(deps-dev): upgrade PHPUnit to v11.5
This commit is contained in:
@@ -4,6 +4,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace Ramsey\Uuid\Test\Converter\Time;
|
||||
|
||||
use PHPUnit\Framework\Attributes\DataProvider;
|
||||
use Ramsey\Uuid\Converter\Time\UnixTimeConverter;
|
||||
use Ramsey\Uuid\Math\BrickMathCalculator;
|
||||
use Ramsey\Uuid\Test\TestCase;
|
||||
@@ -11,9 +12,7 @@ use Ramsey\Uuid\Type\Hexadecimal;
|
||||
|
||||
class UnixTimeConverterTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @dataProvider provideConvertTime
|
||||
*/
|
||||
#[DataProvider('provideConvertTime')]
|
||||
public function testConvertTime(Hexadecimal $uuidTimestamp, string $unixTimestamp, string $microseconds): void
|
||||
{
|
||||
$calculator = new BrickMathCalculator();
|
||||
@@ -28,7 +27,7 @@ class UnixTimeConverterTest extends TestCase
|
||||
/**
|
||||
* @return array<array{uuidTimestamp: Hexadecimal, unixTimestamp: string, microseconds: string}>
|
||||
*/
|
||||
public function provideConvertTime(): array
|
||||
public static function provideConvertTime(): array
|
||||
{
|
||||
return [
|
||||
[
|
||||
@@ -106,9 +105,8 @@ class UnixTimeConverterTest extends TestCase
|
||||
* @param numeric-string $seconds
|
||||
* @param numeric-string $microseconds
|
||||
* @param non-empty-string $expected
|
||||
*
|
||||
* @dataProvider provideCalculateTime
|
||||
*/
|
||||
#[DataProvider('provideCalculateTime')]
|
||||
public function testCalculateTime(string $seconds, string $microseconds, string $expected): void
|
||||
{
|
||||
$calculator = new BrickMathCalculator();
|
||||
@@ -122,7 +120,7 @@ class UnixTimeConverterTest extends TestCase
|
||||
/**
|
||||
* @return array<array{seconds: numeric-string, microseconds: numeric-string, expected: non-empty-string}>
|
||||
*/
|
||||
public function provideCalculateTime(): array
|
||||
public static function provideCalculateTime(): array
|
||||
{
|
||||
return [
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user