Skip to content

Correct spelling & grammar in 4.4 testing.rst #16254

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 16, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ After the library is installed, try running PHPUnit:

$ php ./vendor/bin/phpunit

This commands automatically runs your application's tests. Each test is a
This command automatically runs your application tests. Each test is a
PHP class ending with "Test" (e.g. ``BlogControllerTest``) that lives in
the ``tests/`` directory of your application.

Expand Down Expand Up @@ -147,7 +147,7 @@ usually defined in the ``KERNEL_CLASS`` environment variable

If your use case is more complex, you can also override the
``getKernelClass()`` or ``createKernel()`` methods of your functional
test, which take precedence over the ``KERNEL_CLASS`` env var.
test, which takes precedence over the ``KERNEL_CLASS`` env var.

Set-up your Test Environment
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -376,7 +376,7 @@ generate an empty fixture class:
The class name of the fixtures to create (e.g. AppFixtures):
> ProductFixture

Then you modify use this class to load new entities in the database. For
Then you modify and use this class to load new entities in the database. For
instance, to load ``Product`` objects into Doctrine, use::

// src/DataFixtures/ProductFixture.php
Expand Down Expand Up @@ -858,7 +858,7 @@ Request Assertions
Asserts the given :ref:`request attribute <component-foundation-attributes>`
is set to the expected value.
``assertRouteSame($expectedRoute, array $parameters = [], string $message = '')``
Asserts the request matched the given route and optionally route parameters.
Asserts the request matches the given route and optionally route parameters.

Browser Assertions
..................
Expand Down Expand Up @@ -909,7 +909,7 @@ Mailer Assertions
``assertEmailAttachmentCount(RawMessage $email, int $count, string $message = '')``
Asserts that the given email has the expected number of attachments. Use
``getMailerMessage(int $index = 0, string $transport = null)`` to
retrievea specific email by index.
retrieve a specific email by index.
``assertEmailTextBodyContains(RawMessage $email, string $text, string $message = '')``/``assertEmailTextBodyNotContains(RawMessage $email, string $text, string $message = '')``
Asserts that the text body of the given email does (not) contain the
expected text.
Expand Down