Skip to content

Commit 0ef539a

Browse files
no message
1 parent 35c8a83 commit 0ef539a

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

tests/Unit/MartinGeorgiev/Doctrine/DBAL/Types/CidrArrayTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public static function provideInvalidPHPValuesForDatabaseTransformation(): array
103103
];
104104
}
105105

106-
#[DataProvider('provideInvalidDatabaseValuesForPHPTransformationForPHPTransformation')]
106+
#[DataProvider('provideInvalidDatabaseValuesForPHPTransformation')]
107107
#[Test]
108108
public function throws_exception_when_invalid_data_provided_to_convert_to_php_value(string $postgresValue): void
109109
{
@@ -114,7 +114,7 @@ public function throws_exception_when_invalid_data_provided_to_convert_to_php_va
114114
/**
115115
* @return array<string, array{string}>
116116
*/
117-
public static function provideInvalidDatabaseValuesForPHPTransformationForPHPTransformation(): array
117+
public static function provideInvalidDatabaseValuesForPHPTransformation(): array
118118
{
119119
return [
120120
'invalid format' => ['{"invalid-cidr"}'],

tests/Unit/MartinGeorgiev/Doctrine/DBAL/Types/MacaddrTest.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,57 +36,57 @@ public function has_name(): void
3636

3737
#[DataProvider('provideValidTransformations')]
3838
#[Test]
39-
public function can_transform_from_php_value(?string $phpInput, ?string $postgresValueAfterNormalisation, ?string $phpValueAfterRetrievalFromDatabase): void
39+
public function can_transform_from_php_value(?string $phpInput, ?string $postgresValueAfterNormalization, ?string $phpValueAfterRetrievalFromDatabase): void
4040
{
41-
self::assertEquals($postgresValueAfterNormalisation, $this->fixture->convertToDatabaseValue($phpInput, $this->platform));
41+
self::assertEquals($postgresValueAfterNormalization, $this->fixture->convertToDatabaseValue($phpInput, $this->platform));
4242
}
4343

4444
#[DataProvider('provideValidTransformations')]
4545
#[Test]
46-
public function can_transform_to_php_value(?string $phpInput, ?string $postgresValueAfterNormalisation, ?string $phpValueAfterRetrievalFromDatabase): void
46+
public function can_transform_to_php_value(?string $phpInput, ?string $postgresValueAfterNormalization, ?string $phpValueAfterRetrievalFromDatabase): void
4747
{
48-
self::assertEquals($phpValueAfterRetrievalFromDatabase, $this->fixture->convertToPHPValue($postgresValueAfterNormalisation, $this->platform));
48+
self::assertEquals($phpValueAfterRetrievalFromDatabase, $this->fixture->convertToPHPValue($postgresValueAfterNormalization, $this->platform));
4949
}
5050

5151
/**
52-
* @return array<string, array{phpInput: string|null, postgresValueAfterNormalisation: string|null, postgresValueAfterNormalisation: string|null}>
52+
* @return array<string, array{phpInput: string|null, postgresValueAfterNormalization: string|null, phpValueAfterRetrievalFromDatabase: string|null}>
5353
*/
5454
public static function provideValidTransformations(): array
5555
{
5656
return [
5757
'null' => [
5858
'phpInput' => null,
59-
'postgresValueAfterNormalisation' => null,
59+
'postgresValueAfterNormalization' => null,
6060
'phpValueAfterRetrievalFromDatabase' => null,
6161
],
6262
'colon-separated lowercase' => [
6363
'phpInput' => '08:00:2b:01:02:03',
64-
'postgresValueAfterNormalisation' => '08:00:2b:01:02:03',
64+
'postgresValueAfterNormalization' => '08:00:2b:01:02:03',
6565
'phpValueAfterRetrievalFromDatabase' => '08:00:2b:01:02:03',
6666
],
6767
'colon-separated uppercase' => [
6868
'phpInput' => '08:00:2B:01:02:03',
69-
'postgresValueAfterNormalisation' => '08:00:2b:01:02:03',
69+
'postgresValueAfterNormalization' => '08:00:2b:01:02:03',
7070
'phpValueAfterRetrievalFromDatabase' => '08:00:2b:01:02:03',
7171
],
7272
'hyphen-separated lowercase' => [
7373
'phpInput' => '08-00-2b-01-02-03',
74-
'postgresValueAfterNormalisation' => '08:00:2b:01:02:03',
74+
'postgresValueAfterNormalization' => '08:00:2b:01:02:03',
7575
'phpValueAfterRetrievalFromDatabase' => '08:00:2b:01:02:03',
7676
],
7777
'hyphen-separated uppercase' => [
7878
'phpInput' => '08-00-2B-01-02-03',
79-
'postgresValueAfterNormalisation' => '08:00:2b:01:02:03',
79+
'postgresValueAfterNormalization' => '08:00:2b:01:02:03',
8080
'phpValueAfterRetrievalFromDatabase' => '08:00:2b:01:02:03',
8181
],
8282
'no separator' => [
8383
'phpInput' => '08002B010203',
84-
'postgresValueAfterNormalisation' => '08:00:2b:01:02:03',
84+
'postgresValueAfterNormalization' => '08:00:2b:01:02:03',
8585
'phpValueAfterRetrievalFromDatabase' => '08:00:2b:01:02:03',
8686
],
8787
'mixed case no separator' => [
8888
'phpInput' => '08002b010203',
89-
'postgresValueAfterNormalisation' => '08:00:2b:01:02:03',
89+
'postgresValueAfterNormalization' => '08:00:2b:01:02:03',
9090
'phpValueAfterRetrievalFromDatabase' => '08:00:2b:01:02:03',
9191
],
9292
];

0 commit comments

Comments
 (0)