Skip to content

Commit 02ceeb0

Browse files
no message
1 parent 69c5e33 commit 02ceeb0

22 files changed

+157
-68
lines changed

tests/Integration/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/ArrayAggTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ class ArrayAggTest extends ArrayTestCase
1111
{
1212
protected function getStringFunctions(): array
1313
{
14-
return ['ARRAY_AGG' => ArrayAgg::class];
14+
return [
15+
'ARRAY_AGG' => ArrayAgg::class,
16+
];
1517
}
1618

1719
#[Test]

tests/Integration/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/ArrayAppendTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ class ArrayAppendTest extends ArrayTestCase
1111
{
1212
protected function getStringFunctions(): array
1313
{
14-
return ['ARRAY_APPEND' => ArrayAppend::class];
14+
return [
15+
'ARRAY_APPEND' => ArrayAppend::class,
16+
];
1517
}
1618

1719
#[Test]

tests/Integration/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/ArrayCardinalityTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ class ArrayCardinalityTest extends ArrayTestCase
1111
{
1212
protected function getStringFunctions(): array
1313
{
14-
return ['ARRAY_CARDINALITY' => ArrayCardinality::class];
14+
return [
15+
'ARRAY_CARDINALITY' => ArrayCardinality::class,
16+
];
1517
}
1618

1719
#[Test]

tests/Integration/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/ArrayDimensionsTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ class ArrayDimensionsTest extends ArrayTestCase
1111
{
1212
protected function getStringFunctions(): array
1313
{
14-
return ['ARRAY_DIMENSIONS' => ArrayDimensions::class];
14+
return [
15+
'ARRAY_DIMENSIONS' => ArrayDimensions::class,
16+
];
1517
}
1618

1719
#[Test]

tests/Integration/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/ArrayNumberOfDimensionsTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ class ArrayNumberOfDimensionsTest extends ArrayTestCase
1111
{
1212
protected function getStringFunctions(): array
1313
{
14-
return ['ARRAY_NUMBER_OF_DIMENSIONS' => ArrayNumberOfDimensions::class];
14+
return [
15+
'ARRAY_NUMBER_OF_DIMENSIONS' => ArrayNumberOfDimensions::class,
16+
];
1517
}
1618

1719
#[Test]

tests/Integration/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/ArrayPositionsTest.php

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,19 @@
55
namespace Tests\Integration\MartinGeorgiev\Doctrine\ORM\Query\AST\Functions;
66

77
use MartinGeorgiev\Doctrine\ORM\Query\AST\Functions\ArrayPositions;
8+
use PHPUnit\Framework\Attributes\Test;
89

910
class ArrayPositionsTest extends ArrayTestCase
1011
{
1112
protected function getStringFunctions(): array
1213
{
13-
return ['ARRAY_POSITIONS' => ArrayPositions::class];
14+
return [
15+
'ARRAY_POSITIONS' => ArrayPositions::class,
16+
];
1417
}
1518

16-
public function test_array_positions_with_text_array(): void
19+
#[Test]
20+
public function array_positions_with_text_array(): void
1721
{
1822
$dql = 'SELECT ARRAY_POSITIONS(t.textArray, :value) as result
1923
FROM Fixtures\MartinGeorgiev\Doctrine\Entity\ContainsArrays t
@@ -25,7 +29,8 @@ public function test_array_positions_with_text_array(): void
2529
$this->assertSame([2], $actual);
2630
}
2731

28-
public function test_array_positions_with_integer_array(): void
32+
#[Test]
33+
public function array_positions_with_integer_array(): void
2934
{
3035
$dql = 'SELECT ARRAY_POSITIONS(t.integerArray, :value) as result
3136
FROM Fixtures\MartinGeorgiev\Doctrine\Entity\ContainsArrays t
@@ -37,7 +42,8 @@ public function test_array_positions_with_integer_array(): void
3742
$this->assertSame([2], $actual);
3843
}
3944

40-
public function test_array_positions_with_boolean_array(): void
45+
#[Test]
46+
public function array_positions_with_boolean_array(): void
4147
{
4248
$dql = 'SELECT ARRAY_POSITIONS(t.boolArray, :value) as result
4349
FROM Fixtures\MartinGeorgiev\Doctrine\Entity\ContainsArrays t
@@ -49,7 +55,8 @@ public function test_array_positions_with_boolean_array(): void
4955
$this->assertSame([2], $actual);
5056
}
5157

52-
public function test_array_positions_with_not_found(): void
58+
#[Test]
59+
public function array_positions_with_not_found(): void
5360
{
5461
$dql = 'SELECT ARRAY_POSITIONS(t.textArray, :value) as result
5562
FROM Fixtures\MartinGeorgiev\Doctrine\Entity\ContainsArrays t

tests/Integration/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/ArrayPrependTest.php

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,19 @@
55
namespace Tests\Integration\MartinGeorgiev\Doctrine\ORM\Query\AST\Functions;
66

77
use MartinGeorgiev\Doctrine\ORM\Query\AST\Functions\ArrayPrepend;
8+
use PHPUnit\Framework\Attributes\Test;
89

910
class ArrayPrependTest extends ArrayTestCase
1011
{
1112
protected function getStringFunctions(): array
1213
{
13-
return ['ARRAY_PREPEND' => ArrayPrepend::class];
14+
return [
15+
'ARRAY_PREPEND' => ArrayPrepend::class,
16+
];
1417
}
1518

16-
public function test_array_prepend_with_text_array(): void
19+
#[Test]
20+
public function array_prepend_with_text_array(): void
1721
{
1822
$dql = 'SELECT ARRAY_PREPEND(\'orange\', t.textArray) as result
1923
FROM Fixtures\MartinGeorgiev\Doctrine\Entity\ContainsArrays t
@@ -25,7 +29,8 @@ public function test_array_prepend_with_text_array(): void
2529
$this->assertSame(['orange', 'apple', 'banana', 'orange'], $actual);
2630
}
2731

28-
public function test_array_prepend_with_integer_array(): void
32+
#[Test]
33+
public function array_prepend_with_integer_array(): void
2934
{
3035
$dql = 'SELECT ARRAY_PREPEND(3, t.integerArray) as result
3136
FROM Fixtures\MartinGeorgiev\Doctrine\Entity\ContainsArrays t
@@ -37,7 +42,8 @@ public function test_array_prepend_with_integer_array(): void
3742
$this->assertSame([3, 1, 2, 3], $actual);
3843
}
3944

40-
public function test_array_prepend_with_boolean_array(): void
45+
#[Test]
46+
public function array_prepend_with_boolean_array(): void
4147
{
4248
$dql = 'SELECT ARRAY_PREPEND(true, t.boolArray) as result
4349
FROM Fixtures\MartinGeorgiev\Doctrine\Entity\ContainsArrays t

tests/Integration/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/ArrayReplaceTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ class ArrayReplaceTest extends ArrayTestCase
1111
{
1212
protected function getStringFunctions(): array
1313
{
14-
return ['ARRAY_REPLACE' => ArrayReplace::class];
14+
return [
15+
'ARRAY_REPLACE' => ArrayReplace::class,
16+
];
1517
}
1618

1719
#[Test]

tests/Integration/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/ArrayShuffleTest.php

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,19 @@
55
namespace Tests\Integration\MartinGeorgiev\Doctrine\ORM\Query\AST\Functions;
66

77
use MartinGeorgiev\Doctrine\ORM\Query\AST\Functions\ArrayShuffle;
8+
use PHPUnit\Framework\Attributes\Test;
89

910
class ArrayShuffleTest extends ArrayTestCase
1011
{
1112
protected function getStringFunctions(): array
1213
{
13-
return ['ARRAY_SHUFFLE' => ArrayShuffle::class];
14+
return [
15+
'ARRAY_SHUFFLE' => ArrayShuffle::class,
16+
];
1417
}
1518

16-
public function test_array_shuffle_with_text_array(): void
19+
#[Test]
20+
public function array_shuffle_with_text_array(): void
1721
{
1822
$dql = 'SELECT ARRAY_SHUFFLE(t.textArray) as result
1923
FROM Fixtures\MartinGeorgiev\Doctrine\Entity\ContainsArrays t
@@ -26,7 +30,8 @@ public function test_array_shuffle_with_text_array(): void
2630
$this->assertEqualsCanonicalizing(['apple', 'banana', 'orange'], $actual);
2731
}
2832

29-
public function test_array_shuffle_with_integer_array(): void
33+
#[Test]
34+
public function array_shuffle_with_integer_array(): void
3035
{
3136
$dql = 'SELECT ARRAY_SHUFFLE(t.integerArray) as result
3237
FROM Fixtures\MartinGeorgiev\Doctrine\Entity\ContainsArrays t
@@ -39,7 +44,8 @@ public function test_array_shuffle_with_integer_array(): void
3944
$this->assertEqualsCanonicalizing([1, 2, 3], $actual);
4045
}
4146

42-
public function test_array_shuffle_with_boolean_array(): void
47+
#[Test]
48+
public function array_shuffle_with_boolean_array(): void
4349
{
4450
$dql = 'SELECT ARRAY_SHUFFLE(t.boolArray) as result
4551
FROM Fixtures\MartinGeorgiev\Doctrine\Entity\ContainsArrays t

tests/Integration/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/ArrayToStringTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ class ArrayToStringTest extends ArrayTestCase
1111
{
1212
protected function getStringFunctions(): array
1313
{
14-
return ['ARRAY_TO_STRING' => ArrayToString::class];
14+
return [
15+
'ARRAY_TO_STRING' => ArrayToString::class,
16+
];
1517
}
1618

1719
#[Test]

0 commit comments

Comments
 (0)