Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit01cda97

Browse files
committed
Merge branch '5.2' into 5.3
* 5.2: Fixed ambiguous sentence [Contribution] Document the different types of tests run in CI Added header removal notice Minor clarification Minor change at email_validation_mode
2 parents433e05d +c3ec07e commit01cda97

File tree

4 files changed

+69
-6
lines changed

4 files changed

+69
-6
lines changed

‎contributing/code/pull_requests.rst‎

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,68 @@ After the `Psalm phar is installed`_, the analysis can be run locally with:
429429
430430
$ psalm.phar src/Symfony/Component/Workflow
431431
432+
Automated Tests
433+
~~~~~~~~~~~~~~~
434+
435+
A series of automated tests will run when submitting the pull request.
436+
These test the code under different conditions, to be sure nothing
437+
important is broken. Test failures can be unrelated to your changes. If you
438+
think this is the case, you can check if the target branch has the same
439+
errors and leave a comment on your PR.
440+
441+
Otherwise, the test failure might be caused by your changes. The following
442+
test scenarios run on each change:
443+
444+
``PHPUnit / Tests``
445+
This job runs on Ubuntu using multiple PHP versions (each in their
446+
own job). These jobs run the testsuite just like you would do locally.
447+
448+
A failure in these jobs often indicates a bug in the code.
449+
450+
``PHPUnit / Tests (high-deps)``
451+
This job checks each package (bridge, bundle or component) in ``src/``
452+
individually by calling ``composer update`` and ``phpunit`` from inside
453+
each package.
454+
455+
A failure in this job often indicates a missing package in the
456+
``composer.json`` of the failing package (e.g.
457+
``src/Symfony/Bundle/FrameworkBundle/composer.json``).
458+
459+
This job also runs relevant packages using a "flipped" test (indicated
460+
by a ``^`` suffix in the package name). These tests checkout the
461+
previous major release (e.g. ``4.4`` for a pull requests on ``5.4``)
462+
and run the tests with your branch as dependency.
463+
464+
A failure in these flipped tests indicate a backwards compatibility
465+
break in your changes.
466+
467+
``PHPUnit / Tests (low-deps)``
468+
This job also checks each package individually, but then uses
469+
``composer update --prefer-lowest`` before running the tests.
470+
471+
A failure in this job often indicates a wrong version range or a
472+
missing package in the ``composer.json`` of the failing package.
473+
474+
``continuous-integration/appveyor/pr``
475+
This job runs on Windows using the x86 architecture and the lowest
476+
supported PHP version. All tests first run without extra PHP
477+
extensions. Then, all skipped tests are run using all required PHP
478+
extensions.
479+
480+
A failure in this job often indicate that your changes do not support
481+
Windows, x86 or PHP with minimal extensions.
482+
483+
``Integration / Tests``
484+
Integration tests require other services (e.g. Redis or RabbitMQ) to
485+
run. This job only runs the tests in the ``integration`` PHPUnit group.
486+
487+
A failure in this job indicates a bug in the communication with these
488+
services.
489+
490+
``PHPUnit / Tests (experimental)``
491+
This job always passes (even with failing tests) and is used by the
492+
core team to prepare for the upcoming PHP versions.
493+
432494
.. _rework-your-patch:
433495

434496
Rework your Pull Request

‎mailer.rst‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,13 +1101,14 @@ This can be configured by replacing the ``dsn`` configuration entry with a
11011101
;
11021102
};
11031103
1104-
By default the first transport is used. The other transports can be used by
1105-
adding a text header ``X-Transport`` to an email::
1104+
By default the first transport is used. The other transports can be selected by
1105+
adding an ``X-Transport`` header (which Mailer will remove automatically from
1106+
the final email)::
11061107

1107-
// Send using first "main" transport ...
1108+
// Send using firsttransport ("main"):
11081109
$mailer->send($email);
11091110

1110-
// ... or use the "alternative" one
1111+
// ... or use thetransport"alternative":
11111112
$email->getHeaders()->addTextHeader('X-Transport', 'alternative');
11121113
$mailer->send($email);
11131114

‎reference/configuration/framework.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2713,7 +2713,7 @@ email_validation_mode
27132713

27142714
**type**: ``string`` **default**: ``loose``
27152715

2716-
It controlstheway email addresses are validated by the
2716+
Setsthedefault value for
27172717
:doc:`/reference/constraints/Email` validator. The possible values are:
27182718

27192719
* ``loose``, it uses a simple regular expression to validate the address (it

‎setup/upgrade_minor.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ probably need to update the version constraint next to each library starting
4141
"...": "...",
4242
4343
"...": "A few libraries starting with
44-
symfony/ follow their versioning scheme. You
44+
symfony/ follow theirownversioning scheme. You
4545
do not need to update these versions: you can
4646
upgrade them independently whenever you want",
4747
"symfony/monolog-bundle": "^3.5",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp