Skip to content

Commit 78affad

Browse files
Update PHP - All packages except core - Minor and patch (#2450)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Alex Skrypnyk <alex@drevops.com>
1 parent 0d83c5a commit 78affad

22 files changed

Lines changed: 120 additions & 44 deletions

File tree

.vortex/installer/tests/Fixtures/handler_process/ciprovider_circleci/tests/phpunit/CircleCiConfigTest.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ protected function setUp(): void {
4848
*/
4949
#[DataProvider('dataProviderDeployBranchRegex')]
5050
public function testDeployBranchRegex(string $branch, bool $expected = TRUE): void {
51-
$this->assertEquals($expected, preg_match($this->config['workflows']['commit']['jobs'][3]['deploy']['filters']['branches']['only'], $branch));
51+
$pattern = $this->config['workflows']['commit']['jobs'][3]['deploy']['filters']['branches']['only'];
52+
$result = preg_match($pattern, $branch);
53+
$this->assertEquals($expected, $result);
5254
}
5355

5456
/**
@@ -220,7 +222,9 @@ public static function dataProviderDeployBranchRegex(): \Iterator {
220222
*/
221223
#[DataProvider('dataProviderDeployTagRegex')]
222224
public function testDeployTagRegex(string $branch, bool $expected = TRUE): void {
223-
$this->assertEquals($expected, preg_match($this->config['workflows']['commit']['jobs'][4]['deploy-tags']['filters']['tags']['only'], $branch));
225+
$pattern = $this->config['workflows']['commit']['jobs'][4]['deploy-tags']['filters']['tags']['only'];
226+
$result = preg_match($pattern, $branch);
227+
$this->assertEquals($expected, $result);
224228
}
225229

226230
/**

.vortex/installer/tests/Fixtures/handler_process/deploy_types_all_circleci/tests/phpunit/CircleCiConfigTest.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ protected function setUp(): void {
4848
*/
4949
#[DataProvider('dataProviderDeployBranchRegex')]
5050
public function testDeployBranchRegex(string $branch, bool $expected = TRUE): void {
51-
$this->assertEquals($expected, preg_match($this->config['workflows']['commit']['jobs'][3]['deploy']['filters']['branches']['only'], $branch));
51+
$pattern = $this->config['workflows']['commit']['jobs'][3]['deploy']['filters']['branches']['only'];
52+
$result = preg_match($pattern, $branch);
53+
$this->assertEquals($expected, $result);
5254
}
5355

5456
/**
@@ -220,7 +222,9 @@ public static function dataProviderDeployBranchRegex(): \Iterator {
220222
*/
221223
#[DataProvider('dataProviderDeployTagRegex')]
222224
public function testDeployTagRegex(string $branch, bool $expected = TRUE): void {
223-
$this->assertEquals($expected, preg_match($this->config['workflows']['commit']['jobs'][4]['deploy-tags']['filters']['tags']['only'], $branch));
225+
$pattern = $this->config['workflows']['commit']['jobs'][4]['deploy-tags']['filters']['tags']['only'];
226+
$result = preg_match($pattern, $branch);
227+
$this->assertEquals($expected, $result);
224228
}
225229

226230
/**

.vortex/installer/tests/Fixtures/handler_process/deploy_types_none_circleci/tests/phpunit/CircleCiConfigTest.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ protected function setUp(): void {
4848
*/
4949
#[DataProvider('dataProviderDeployBranchRegex')]
5050
public function testDeployBranchRegex(string $branch, bool $expected = TRUE): void {
51-
$this->assertEquals($expected, preg_match($this->config['workflows']['commit']['jobs'][3]['deploy']['filters']['branches']['only'], $branch));
51+
$pattern = $this->config['workflows']['commit']['jobs'][3]['deploy']['filters']['branches']['only'];
52+
$result = preg_match($pattern, $branch);
53+
$this->assertEquals($expected, $result);
5254
}
5355

5456
/**
@@ -220,7 +222,9 @@ public static function dataProviderDeployBranchRegex(): \Iterator {
220222
*/
221223
#[DataProvider('dataProviderDeployTagRegex')]
222224
public function testDeployTagRegex(string $branch, bool $expected = TRUE): void {
223-
$this->assertEquals($expected, preg_match($this->config['workflows']['commit']['jobs'][4]['deploy-tags']['filters']['tags']['only'], $branch));
225+
$pattern = $this->config['workflows']['commit']['jobs'][4]['deploy-tags']['filters']['tags']['only'];
226+
$result = preg_match($pattern, $branch);
227+
$this->assertEquals($expected, $result);
224228
}
225229

226230
/**

.vortex/installer/tests/Fixtures/handler_process/deps_updates_provider_ci_circleci/tests/phpunit/CircleCiConfigTest.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ protected function setUp(): void {
4848
*/
4949
#[DataProvider('dataProviderDeployBranchRegex')]
5050
public function testDeployBranchRegex(string $branch, bool $expected = TRUE): void {
51-
$this->assertEquals($expected, preg_match($this->config['workflows']['commit']['jobs'][3]['deploy']['filters']['branches']['only'], $branch));
51+
$pattern = $this->config['workflows']['commit']['jobs'][3]['deploy']['filters']['branches']['only'];
52+
$result = preg_match($pattern, $branch);
53+
$this->assertEquals($expected, $result);
5254
}
5355

5456
/**
@@ -220,7 +222,9 @@ public static function dataProviderDeployBranchRegex(): \Iterator {
220222
*/
221223
#[DataProvider('dataProviderDeployTagRegex')]
222224
public function testDeployTagRegex(string $branch, bool $expected = TRUE): void {
223-
$this->assertEquals($expected, preg_match($this->config['workflows']['commit']['jobs'][4]['deploy-tags']['filters']['tags']['only'], $branch));
225+
$pattern = $this->config['workflows']['commit']['jobs'][4]['deploy-tags']['filters']['tags']['only'];
226+
$result = preg_match($pattern, $branch);
227+
$this->assertEquals($expected, $result);
224228
}
225229

226230
/**

.vortex/installer/tests/Fixtures/handler_process/migration_disabled_circleci/tests/phpunit/CircleCiConfigTest.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ protected function setUp(): void {
4848
*/
4949
#[DataProvider('dataProviderDeployBranchRegex')]
5050
public function testDeployBranchRegex(string $branch, bool $expected = TRUE): void {
51-
$this->assertEquals($expected, preg_match($this->config['workflows']['commit']['jobs'][3]['deploy']['filters']['branches']['only'], $branch));
51+
$pattern = $this->config['workflows']['commit']['jobs'][3]['deploy']['filters']['branches']['only'];
52+
$result = preg_match($pattern, $branch);
53+
$this->assertEquals($expected, $result);
5254
}
5355

5456
/**
@@ -220,7 +222,9 @@ public static function dataProviderDeployBranchRegex(): \Iterator {
220222
*/
221223
#[DataProvider('dataProviderDeployTagRegex')]
222224
public function testDeployTagRegex(string $branch, bool $expected = TRUE): void {
223-
$this->assertEquals($expected, preg_match($this->config['workflows']['commit']['jobs'][4]['deploy-tags']['filters']['tags']['only'], $branch));
225+
$pattern = $this->config['workflows']['commit']['jobs'][4]['deploy-tags']['filters']['tags']['only'];
226+
$result = preg_match($pattern, $branch);
227+
$this->assertEquals($expected, $result);
224228
}
225229

226230
/**

.vortex/installer/tests/Fixtures/handler_process/migration_enabled_circleci/tests/phpunit/CircleCiConfigTest.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ protected function setUp(): void {
4848
*/
4949
#[DataProvider('dataProviderDeployBranchRegex')]
5050
public function testDeployBranchRegex(string $branch, bool $expected = TRUE): void {
51-
$this->assertEquals($expected, preg_match($this->config['workflows']['commit']['jobs'][3]['deploy']['filters']['branches']['only'], $branch));
51+
$pattern = $this->config['workflows']['commit']['jobs'][3]['deploy']['filters']['branches']['only'];
52+
$result = preg_match($pattern, $branch);
53+
$this->assertEquals($expected, $result);
5254
}
5355

5456
/**
@@ -220,7 +222,9 @@ public static function dataProviderDeployBranchRegex(): \Iterator {
220222
*/
221223
#[DataProvider('dataProviderDeployTagRegex')]
222224
public function testDeployTagRegex(string $branch, bool $expected = TRUE): void {
223-
$this->assertEquals($expected, preg_match($this->config['workflows']['commit']['jobs'][4]['deploy-tags']['filters']['tags']['only'], $branch));
225+
$pattern = $this->config['workflows']['commit']['jobs'][4]['deploy-tags']['filters']['tags']['only'];
226+
$result = preg_match($pattern, $branch);
227+
$this->assertEquals($expected, $result);
224228
}
225229

226230
/**

.vortex/installer/tests/Fixtures/handler_process/timezone_circleci/tests/phpunit/CircleCiConfigTest.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ protected function setUp(): void {
4848
*/
4949
#[DataProvider('dataProviderDeployBranchRegex')]
5050
public function testDeployBranchRegex(string $branch, bool $expected = TRUE): void {
51-
$this->assertEquals($expected, preg_match($this->config['workflows']['commit']['jobs'][3]['deploy']['filters']['branches']['only'], $branch));
51+
$pattern = $this->config['workflows']['commit']['jobs'][3]['deploy']['filters']['branches']['only'];
52+
$result = preg_match($pattern, $branch);
53+
$this->assertEquals($expected, $result);
5254
}
5355

5456
/**
@@ -220,7 +222,9 @@ public static function dataProviderDeployBranchRegex(): \Iterator {
220222
*/
221223
#[DataProvider('dataProviderDeployTagRegex')]
222224
public function testDeployTagRegex(string $branch, bool $expected = TRUE): void {
223-
$this->assertEquals($expected, preg_match($this->config['workflows']['commit']['jobs'][4]['deploy-tags']['filters']['tags']['only'], $branch));
225+
$pattern = $this->config['workflows']['commit']['jobs'][4]['deploy-tags']['filters']['tags']['only'];
226+
$result = preg_match($pattern, $branch);
227+
$this->assertEquals($expected, $result);
224228
}
225229

226230
/**

.vortex/installer/tests/Fixtures/handler_process/tools_groups_no_be_lint_circleci/tests/phpunit/CircleCiConfigTest.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ protected function setUp(): void {
4343
*/
4444
#[DataProvider('dataProviderDeployBranchRegex')]
4545
public function testDeployBranchRegex(string $branch, bool $expected = TRUE): void {
46-
$this->assertEquals($expected, preg_match($this->config['workflows']['commit']['jobs'][3]['deploy']['filters']['branches']['only'], $branch));
46+
$pattern = $this->config['workflows']['commit']['jobs'][3]['deploy']['filters']['branches']['only'];
47+
$result = preg_match($pattern, $branch);
48+
$this->assertEquals($expected, $result);
4749
}
4850

4951
/**
@@ -215,7 +217,9 @@ public static function dataProviderDeployBranchRegex(): \Iterator {
215217
*/
216218
#[DataProvider('dataProviderDeployTagRegex')]
217219
public function testDeployTagRegex(string $branch, bool $expected = TRUE): void {
218-
$this->assertEquals($expected, preg_match($this->config['workflows']['commit']['jobs'][4]['deploy-tags']['filters']['tags']['only'], $branch));
220+
$pattern = $this->config['workflows']['commit']['jobs'][4]['deploy-tags']['filters']['tags']['only'];
221+
$result = preg_match($pattern, $branch);
222+
$this->assertEquals($expected, $result);
219223
}
220224

221225
/**

.vortex/installer/tests/Fixtures/handler_process/tools_groups_no_fe_lint_circleci/tests/phpunit/CircleCiConfigTest.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ protected function setUp(): void {
4848
*/
4949
#[DataProvider('dataProviderDeployBranchRegex')]
5050
public function testDeployBranchRegex(string $branch, bool $expected = TRUE): void {
51-
$this->assertEquals($expected, preg_match($this->config['workflows']['commit']['jobs'][3]['deploy']['filters']['branches']['only'], $branch));
51+
$pattern = $this->config['workflows']['commit']['jobs'][3]['deploy']['filters']['branches']['only'];
52+
$result = preg_match($pattern, $branch);
53+
$this->assertEquals($expected, $result);
5254
}
5355

5456
/**
@@ -220,7 +222,9 @@ public static function dataProviderDeployBranchRegex(): \Iterator {
220222
*/
221223
#[DataProvider('dataProviderDeployTagRegex')]
222224
public function testDeployTagRegex(string $branch, bool $expected = TRUE): void {
223-
$this->assertEquals($expected, preg_match($this->config['workflows']['commit']['jobs'][4]['deploy-tags']['filters']['tags']['only'], $branch));
225+
$pattern = $this->config['workflows']['commit']['jobs'][4]['deploy-tags']['filters']['tags']['only'];
226+
$result = preg_match($pattern, $branch);
227+
$this->assertEquals($expected, $result);
224228
}
225229

226230
/**

.vortex/installer/tests/Fixtures/handler_process/tools_groups_no_fe_lint_circleci/web/modules/custom/sw_demo/js/-sw_demo.test.js

Whitespace-only changes.

0 commit comments

Comments
 (0)