Skip to content

Commit cee037e

Browse files
Merge branch '9.0' into 9.1
2 parents 7b3f7a3 + 26f85de commit cee037e

8 files changed

+15
-15
lines changed

src/extending-phpunit.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Write custom assertions
2828
When writing custom assertions it is the best practice to follow how
2929
PHPUnit's own assertions are implemented. As you can see in
3030
:numref:`extending-phpunit.examples.Assert.php`, the
31-
``assertTrue()`` method is just a wrapper around the
31+
``assertTrue()`` method is a wrapper around the
3232
``isTrue()`` and ``assertThat()`` methods:
3333
``isTrue()`` creates a matcher object that is passed on to
3434
``assertThat()`` for evaluation.

src/fixtures.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ original state when the test is complete. This known state is called
1212
the *fixture* of the test.
1313

1414
In :ref:`writing-tests-for-phpunit.examples.StackTest.php`, the
15-
fixture was simply the array that is stored in the ``$stack``
16-
variable. Most of the time, though, the fixture will be more complex
15+
fixture was the array that is stored in the ``$stack`` variable.
16+
Most of the time, though, the fixture will be more complex
1717
than a simple array, and the amount of code needed to set it up will
1818
grow accordingly. The actual content of the test gets lost in the noise
1919
of setting up the fixture. This problem gets even worse when you write

src/incomplete-and-skipped-tests.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ Skipping Tests
112112

113113
Not all tests can be run in every environment. Consider, for instance,
114114
a database abstraction layer that has several drivers for the different
115-
database systems it supports. The tests for the MySQL driver can of
116-
course only be run if a MySQL server is available.
115+
database systems it supports. The tests for the MySQL driver can
116+
only be run if a MySQL server is available.
117117

118118
:numref:`incomplete-and-skipped-tests.skipping-tests.examples.DatabaseTest.php`
119119
shows a test case class, ``DatabaseTest``, that contains one test

src/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ Environment, was created. You can learn about PHIVE on its `website <https://pha
154154
Composer
155155
########
156156

157-
Simply add a (development-time) dependency on
157+
Add a (development-time) dependency on
158158
``phpunit/phpunit`` to your project's
159159
``composer.json`` file if you use `Composer <https://getcomposer.org/>`_ to manage the
160160
dependencies of your project:

src/logging.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ Code Coverage (TEXT)
142142

143143
Human readable code coverage output for the command-line or a text file.
144144

145-
The aim of this output format is to provide a quick coverage overview while
145+
The aim of this output format is to provide a coverage overview while
146146
working on a small set of classes. For bigger projects this output can be
147-
useful to get an quick overview of the projects coverage or when used with
147+
useful to get an overview of the projects coverage or when used with
148148
the ``--filter`` functionality.
149149
When used from the command-line by writing to ``php://stdout``
150150
this will honor the ``--colors`` setting.

src/organizing-tests.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ package and class structure of the System Under Test (SUT) in the
3939
`-- Money.php `-- MoneyTest.php
4040
`-- autoload.php
4141
42-
To run all tests for the library we just need to point the PHPUnit
42+
To run all tests for the library we need to point the PHPUnit
4343
command-line test runner to the test directory:
4444

4545
.. parsed-literal::

src/test-doubles.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ then you can use the ``getMockBuilder($type)`` method to
4141
customize the test double generation using a fluent interface.
4242

4343
By default, all methods of the original class are replaced with a dummy
44-
implementation that just returns ``null`` (without calling
44+
implementation that returns ``null`` (without calling
4545
the original method). Using the ``will($this->returnValue())``
4646
method, for instance, you can configure these dummy implementations to
4747
return a value when called.
@@ -374,7 +374,7 @@ shows how to use ``throwException()`` to do this.
374374
375375
Alternatively, you can write the stub yourself and improve your design
376376
along the way. Widely used resources are accessed through a single façade,
377-
so you can easily replace the resource with the stub. For example,
377+
so you can replace the resource with the stub. For example,
378378
instead of having direct database calls scattered throughout the code,
379379
you have a single ``Database`` object, an implementor of
380380
the ``IDatabase`` interface. Then, you can create a stub
@@ -841,9 +841,9 @@ Stubbing and Mocking Web Services
841841
#################################
842842

843843
When your application interacts with a web service you want to test it
844-
without actually interacting with the web service. To make the stubbing
845-
and mocking of web services easy, the ``getMockFromWsdl()``
846-
can be used just like ``getMock()`` (see above). The only
844+
without actually interacting with the web service. To create stubs
845+
and mocks of web services, the ``getMockFromWsdl()``
846+
can be used like ``getMock()`` (see above). The only
847847
difference is that ``getMockFromWsdl()`` returns a stub or
848848
mock based on a web service description in WSDL and ``getMock()``
849849
returns a stub or mock based on a PHP class or interface.

src/writing-tests-for-phpunit.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ depends upon ``testPush()``.
147147
(normal shallow) clone (based on PHP keyword ``clone``) via
148148
``@depends shallowClone`` are possible too.
149149

150-
To quickly localize defects, we want our attention to be focussed on
150+
To localize defects, we want our attention to be focussed on
151151
relevant failing tests. This is why PHPUnit skips the execution of a test
152152
when a depended-upon test has failed. This improves defect localization by
153153
exploiting the dependencies between tests as shown in

0 commit comments

Comments
 (0)