Skip to content

Commit 09c68a5

Browse files
committed
minor #6469 Tweaks for the DNS-sensitive tests doc (javiereguiluz)
This PR was merged into the master branch. Discussion ---------- Tweaks for the DNS-sensitive tests doc Some tweaks and fixes for the existing docs. Commits ------- 7178f5e Tweaks for the DNS-sensitive tests doc
2 parents 8d9acc5 + 7178f5e commit 09c68a5

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

components/phpunit_bridge.rst

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -214,14 +214,14 @@ record, can be slow to execute and unreliable due to the conditions of the
214214
network. For that reason, this component also provides mocks for these PHP
215215
functions:
216216

217-
* :phpfunction:`checkdnsrr()`
218-
* :phpfunction:`dns_check_record()`
219-
* :phpfunction:`getmxrr()`
220-
* :phpfunction:`dns_get_mx()`
221-
* :phpfunction:`gethostbyaddr()`
222-
* :phpfunction:`gethostbyname()`
223-
* :phpfunction:`gethostbynamel()`
224-
* :phpfunction:`dns_get_record()`
217+
* :phpfunction:`checkdnsrr`
218+
* :phpfunction:`dns_check_record`
219+
* :phpfunction:`getmxrr`
220+
* :phpfunction:`dns_get_mx`
221+
* :phpfunction:`gethostbyaddr`
222+
* :phpfunction:`gethostbyname`
223+
* :phpfunction:`gethostbynamel`
224+
* :phpfunction:`dns_get_record`
225225

226226
Use Case
227227
~~~~~~~~
@@ -266,8 +266,10 @@ the data you expect to get for the given hosts::
266266
// ...
267267
}
268268

269-
The ``withMockedHosts()`` method can return any number of hosts with different
270-
configuration, so you can simulate diverse network conditions::
269+
The ``withMockedHosts()`` method configuration is defined as an array. The keys
270+
are the mocked hosts and the values are arrays of DNS records in the same format
271+
returned by :phpfunction:`dns_get_record`, so you can simulate diverse network
272+
conditions:
271273

272274
DnsMock::withMockedHosts(array(
273275
'example.com' => array(

0 commit comments

Comments
 (0)