Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 05b62e3

Browse filesBrowse files
minor #36712 CI fixes (nicolas-grekas)
This PR was merged into the 5.1-dev branch. Discussion ---------- CI fixes | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Commits ------- 21edafa CI fixes
2 parents e024db7 + 21edafa commit 05b62e3
Copy full SHA for 05b62e3

File tree

6 files changed

+14
-5
lines changed
Filter options

6 files changed

+14
-5
lines changed

‎src/Symfony/Bridge/PhpUnit/Legacy/SymfonyTestsListenerTrait.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/PhpUnit/Legacy/SymfonyTestsListenerTrait.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ public function endTest($test, $time)
253253
$groups = Test::getGroups($className, $test->getName(false));
254254

255255
if ($this->checkNumAssertions) {
256-
if (!self::$expectedDeprecations && !$test->getNumAssertions()) {
256+
if (!self::$expectedDeprecations && !$test->getNumAssertions() && $test->getTestResultObject()->noneSkipped()) {
257257
$test->getTestResultObject()->addFailure($test, new RiskyTestError('This test did not perform any assertions'), $time);
258258
}
259259

‎src/Symfony/Component/Form/Extension/Core/DataTransformer/PercentToLocalizedStringTransformer.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Extension/Core/DataTransformer/PercentToLocalizedStringTransformer.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public function __construct(int $scale = null, string $type = null, ?int $roundi
103103
}
104104

105105
if (null === $roundingMode && (\func_num_args() < 4 || func_get_arg(3))) {
106-
trigger_deprecation('symfony/form', '5.1', sprintf('Not passing a rounding mode to %s() is deprecated. Starting with Symfony 6.0 it will default to "%s::ROUND_HALF_UP".', __METHOD__, __CLASS__));
106+
trigger_deprecation('symfony/form', '5.1', 'Not passing a rounding mode to %s() is deprecated. Starting with Symfony 6.0 it will default to "%s::ROUND_HALF_UP".', __METHOD__, __CLASS__);
107107
}
108108

109109
if (!\in_array($type, self::$types, true)) {

‎src/Symfony/Component/Form/Extension/Core/Type/PercentType.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Extension/Core/Type/PercentType.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function configureOptions(OptionsResolver $resolver)
5050
$resolver->setDefaults([
5151
'scale' => 0,
5252
'rounding_mode' => function (Options $options) {
53-
trigger_deprecation('symfony/form', '5.1', sprintf('Not configuring the "rounding_mode" option is deprecated. It will default to "%s::ROUND_HALF_UP" in Symfony 6.0.', PercentToLocalizedStringTransformer::class));
53+
trigger_deprecation('symfony/form', '5.1', 'Not configuring the "rounding_mode" option is deprecated. It will default to "%s::ROUND_HALF_UP" in Symfony 6.0.', PercentToLocalizedStringTransformer::class);
5454

5555
return null;
5656
},

‎src/Symfony/Component/HttpClient/Tests/AmpHttpClientTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpClient/Tests/AmpHttpClientTest.php
+9Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,13 @@ public function testProxy()
2525
{
2626
$this->markTestSkipped('A real proxy server would be needed.');
2727
}
28+
29+
public function testInformationalResponseStream()
30+
{
31+
if (getenv('TRAVIS_PULL_REQUEST')) {
32+
$this->markTestIncomplete('This test always fails on Travis.');
33+
}
34+
35+
parent::testInformationalResponseStream();
36+
}
2837
}

‎src/Symfony/Component/HttpClient/Tests/HttpClientTestCase.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpClient/Tests/HttpClientTestCase.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ private static function startVulcain(HttpClientInterface $client)
240240
sleep('\\' === \DIRECTORY_SEPARATOR ? 10 : 1);
241241

242242
if (!$process->isRunning()) {
243-
throw new ProcessFailedException($process);
243+
self::markTestSkipped((new ProcessFailedException($process))->getMessage());
244244
}
245245

246246
self::$vulcainStarted = true;

‎src/Symfony/Component/Inflector/Inflector.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Inflector/Inflector.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use Symfony\Component\String\Inflector\EnglishInflector;
1515

16-
trigger_deprecation('symfony/inflector', '5.1', sprintf('The "%s" class is deprecated, use "%s" instead.', Inflector::class, EnglishInflector::class));
16+
trigger_deprecation('symfony/inflector', '5.1', 'The "%s" class is deprecated, use "%s" instead.', Inflector::class, EnglishInflector::class);
1717

1818
/**
1919
* Converts words between singular and plural forms.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.