Skip to content

Commit aeccf44

Browse files
chore: Update Composer QA tooling dependencies (#397)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Martin Georgiev <martin.georgiev@gmail.com>
1 parent f1b0102 commit aeccf44

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@
4747
"deptrac/deptrac": "^3.0",
4848
"doctrine/orm": "~2.14||~3.0",
4949
"ekino/phpstan-banned-code": "^3.0",
50-
"friendsofphp/php-cs-fixer": "^3.76.0",
51-
"phpstan/phpstan": "^2.1.17",
50+
"friendsofphp/php-cs-fixer": "^3.84.0",
51+
"phpstan/phpstan": "^2.1.19",
5252
"phpstan/phpstan-deprecation-rules": "^2.0.3",
53-
"phpstan/phpstan-doctrine": "^2.0.3",
54-
"phpstan/phpstan-phpunit": "^2.0.6",
55-
"phpunit/phpunit": "^10.5.47",
56-
"rector/rector": "^2.1.0",
53+
"phpstan/phpstan-doctrine": "^2.0.4",
54+
"phpstan/phpstan-phpunit": "^2.0.7",
55+
"phpunit/phpunit": "^10.5.48",
56+
"rector/rector": "^2.1.2",
5757
"symfony/cache": "^6.4||^7.0"
5858
},
5959
"suggest": {

tests/Integration/MartinGeorgiev/Utils/PostgresArrayToPHPArrayTransformerTest.php

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,17 @@ protected function setUp(): void
1919
$this->createTestTable();
2020
}
2121

22+
/**
23+
* @param array{description: string, input: array<int, string>} $testCase
24+
*/
25+
#[DataProvider('provideArrayTestCases')]
26+
public function test_array_round_trip(array $testCase): void
27+
{
28+
$id = $this->insertArray($testCase['input']);
29+
30+
$this->assertArrayRoundTrip($id, $testCase['input'], $testCase['description']);
31+
}
32+
2233
/**
2334
* @return array<int, array{0: array{description: string, input: array<int, string>}}>
2435
*/
@@ -44,15 +55,11 @@ public static function provideArrayTestCases(): array
4455
];
4556
}
4657

47-
/**
48-
* @param array{description: string, input: array<int, string>} $testCase
49-
*/
50-
#[DataProvider('provideArrayTestCases')]
51-
public function test_array_round_trip(array $testCase): void
58+
#[DataProvider('provideInvalidArrayFormats')]
59+
public function test_invalid_array_formats_throw_exceptions(array $testCase): void
5260
{
53-
$id = $this->insertArray($testCase['input']);
54-
55-
$this->assertArrayRoundTrip($id, $testCase['input'], $testCase['description']);
61+
$this->expectException(InvalidArrayFormatException::class);
62+
PostgresArrayToPHPArrayTransformer::transformPostgresArrayToPHPArray($testCase['input']); // @phpstan-ignore-line
5663
}
5764

5865
/**
@@ -68,13 +75,6 @@ public static function provideInvalidArrayFormats(): array
6875
];
6976
}
7077

71-
#[DataProvider('provideInvalidArrayFormats')]
72-
public function test_invalid_array_formats_throw_exceptions(array $testCase): void
73-
{
74-
$this->expectException(InvalidArrayFormatException::class);
75-
PostgresArrayToPHPArrayTransformer::transformPostgresArrayToPHPArray($testCase['input']); // @phpstan-ignore-line
76-
}
77-
7878
private function createTestTable(): void
7979
{
8080
$this->dropTestTableIfItExists(self::TABLE_NAME);

0 commit comments

Comments
 (0)