Skip to content

Commit e0000ff

Browse files
Bellangelodependabot[bot]aeon-automationnorberttech
authored
Bump phpunit/phpunit from 10.5.40 to 11.5.3 in /tools/phpunit (#1377)
* Update PHPUnit to v11.5.3 * Constructor of TestCase is now final * In PHPUnit11 providers need to be static * In PHPUnit11 providers need to be static * Fix styling * CacheResultFile is removed. See sebastianbergmann/phpunit#4600 * PHPStan complain that readonly properties must be handled inside the constructor * Fix cache issues * Invalidate cache * Remove composer cache * Revert changed environment variable * Call parent to initialise variables * Revert changes in Github Action * Bump symfonycasts/tailwind-bundle from 0.5.3 to 0.6.1 in /web/landing (#1376) Bumps [symfonycasts/tailwind-bundle](https://github.com/SymfonyCasts/tailwind-bundle) from 0.5.3 to 0.6.1. - [Release notes](https://github.com/SymfonyCasts/tailwind-bundle/releases) - [Commits](SymfonyCasts/tailwind-bundle@v0.5.3...v0.6.1) --- updated-dependencies: - dependency-name: symfonycasts/tailwind-bundle dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Updated CHANGELOG.md * Added and/or/andNot/orNot to ScalarFunctionsChain (#1378) * Bump coduo/php-humanizer from 4.0.3 to 5.0.0 in /web/landing (#1373) Bumps [coduo/php-humanizer](https://github.com/coduo/php-humanizer) from 4.0.3 to 5.0.0. - [Release notes](https://github.com/coduo/php-humanizer/releases) - [Changelog](https://github.com/coduo/php-humanizer/blob/5.x/CHANGELOG.md) - [Upgrade guide](https://github.com/coduo/php-humanizer/blob/5.x/UPGRADE.md) - [Commits](coduo/php-humanizer@4.0.3...5.0.0) --- updated-dependencies: - dependency-name: coduo/php-humanizer dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Updated CHANGELOG.md * Fix conflicts * Updated CHANGELOG.md * Bump async-aws/s3 from 2.6.0 to 2.7.0 (#1381) Bumps [async-aws/s3](https://github.com/async-aws/s3) from 2.6.0 to 2.7.0. - [Release notes](https://github.com/async-aws/s3/releases) - [Changelog](https://github.com/async-aws/s3/blob/master/CHANGELOG.md) - [Commits](async-aws/s3@2.6.0...2.7.0) --- updated-dependencies: - dependency-name: async-aws/s3 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Added elasticsearch examples (#1384) * Updated CHANGELOG.md * Fix dependencies * Fix styling * Remove duplicated path --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: aeon-automation <[email protected]> Co-authored-by: Norbert Orzechowicz <[email protected]>
1 parent 0b8ee64 commit e0000ff

File tree

8 files changed

+304
-238
lines changed

8 files changed

+304
-238
lines changed

phpunit.xml.dist

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
xsi:noNamespaceSchemaLocation="tools/phpunit/vendor/phpunit/phpunit/phpunit.xsd"
55
bootstrap="vendor/autoload.php"
66
colors="true"
7-
cacheResultFile="./var/phpunit/cache/phpunit.cache"
87
displayDetailsOnTestsThatTriggerWarnings="true"
98
displayDetailsOnTestsThatTriggerErrors="true"
109
>
@@ -159,7 +158,6 @@
159158
<directory>src/core/etl/tests/Flow/ETL/Tests/Unit</directory>
160159
<directory>src/lib/array-dot/tests/Flow/ArrayDot/Tests/Unit</directory>
161160
<directory>src/lib/doctrine-dbal-bulk/tests/Flow/Doctrine/Bulk/Tests/Unit</directory>
162-
<directory>src/lib/doctrine-dbal-bulk/tests/Flow/Doctrine/Bulk/Tests/Unit</directory>
163161
<directory>src/lib/filesystem/tests/Flow/Filesystem/Tests/Unit</directory>
164162
<directory>src/lib/parquet/tests/Flow/Parquet/Tests/Unit</directory>
165163
<directory>src/lib/rdsl/tests/Flow/RDSL/Tests/Unit</directory>

src/core/etl/tests/Flow/ArrayComparison/Tests/Unit/ArrayComparisonTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
final class ArrayComparisonTest extends TestCase
1212
{
13-
public function equal_arrays() : \Generator
13+
public static function equal_arrays() : \Generator
1414
{
1515
yield 'simple arrays' => [
1616
['id' => 1, 'name' => 'one', 'color' => 'red'],
@@ -96,7 +96,7 @@ public function equal_arrays() : \Generator
9696
];
9797
}
9898

99-
public function not_equal_arrays() : \Generator
99+
public static function not_equal_arrays() : \Generator
100100
{
101101
yield 'simple arrays' => [
102102
['id' => 1, 'name' => 'one', 'color' => 'red'],

src/core/etl/tests/Flow/ArrayComparison/Tests/Unit/ArraySortByKeyTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
final class ArraySortByKeyTest extends TestCase
1212
{
13-
public function arrays() : \Generator
13+
public static function arrays() : \Generator
1414
{
1515
yield 'simple array' => [
1616
['name' => 'one', 'priority' => 'high', 'id' => 1, 'color' => 'red', 'active' => true],

src/core/etl/tests/Flow/ETL/Tests/FlowIntegrationTestCase.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,17 @@ abstract class FlowIntegrationTestCase extends FlowTestCase
2222

2323
protected Serializer $serializer;
2424

25-
private readonly string $baseMemoryLimit;
25+
private string $baseMemoryLimit;
2626

27-
public function __construct(string $name)
27+
protected function setUp() : void
2828
{
29-
parent::__construct($name);
30-
3129
$this->baseMemoryLimit = (\ini_get('memory_limit')) ?: '-1';
3230

3331
$this->cacheDir = Path::realpath(\getenv(CacheConfig::CACHE_DIR_ENV));
3432
$this->fs = new NativeLocalFilesystem();
3533
$this->fstab = new FilesystemTable($this->fs, new StdOutFilesystem());
3634
$this->serializer = new Base64Serializer(new NativePHPSerializer());
37-
}
3835

39-
protected function setUp() : void
40-
{
4136
$this->cleanupCacheDir($this->cacheDir);
4237
\mkdir($this->cacheDir->path(), recursive: true);
4338
}

src/core/etl/tests/Flow/ETL/Tests/Integration/DataFrame/ConfigBuilderTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@
1111

1212
final class ConfigBuilderTest extends FlowIntegrationTestCase
1313
{
14+
protected function tearDown() : void
15+
{
16+
putenv(CacheConfig::CACHE_DIR_ENV . '=' . $this->cacheDir->path());
17+
18+
parent::tearDown();
19+
}
20+
1421
public function test_creating_custom_cache_dir() : void
1522
{
1623
putenv(CacheConfig::CACHE_DIR_ENV . '=' . __DIR__ . '/var/cache');

src/core/etl/tests/Flow/ETL/Tests/Integration/Pipeline/SynchronousPipelineTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ final class SynchronousPipelineTest extends FlowIntegrationTestCase
1313
{
1414
protected function setUp() : void
1515
{
16+
parent::setUp();
17+
1618
if (!\file_exists(__DIR__ . '/var')) {
1719
\mkdir(__DIR__ . '/var');
1820
}

tools/phpunit/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "flow-php/flow-tools",
33
"description": "Flow PHP ETL - Tools",
44
"require-dev": {
5-
"phpunit/phpunit": "^10"
5+
"phpunit/phpunit": "^11"
66
},
77
"config": {
88
"allow-plugins": false

0 commit comments

Comments
 (0)