Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 02038bd

Browse files
Closes #363
1 parent 7091fe5 commit 02038bd

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/5.7/en/test-doubles.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -857,6 +857,7 @@ class FooTest extends TestCase
857857

858858
<itemizedlist>
859859
<listitem><para><literal>setMethods(array $methods)</literal> can be called on the Mock Builder object to specify the methods that are to be replaced with a configurable test double. The behavior of the other methods is not changed. If you call <literal>setMethods(null)</literal>, then no methods will be replaced.</para></listitem>
860+
<listitem><para><literal>setMethodsExcept(array $methods)</literal> can be called on the Mock Builder object to specify the methods that will not be replaced with a configurable test double while replacing all other public methods. This works inverse to <literal>setMethods()</literal>.</para></listitem>
860861
<listitem><para><literal>setConstructorArgs(array $args)</literal> can be called to provide a parameter array that is passed to the original class' constructor (which is not replaced with a dummy implementation by default).</para></listitem>
861862
<listitem><para><literal>setMockClassName($name)</literal> can be used to specify a class name for the generated test double class.</para></listitem>
862863
<listitem><para><literal>disableOriginalConstructor()</literal> can be used to disable the call to the original class' constructor.</para></listitem>

src/6.5/en/test-doubles.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -857,6 +857,7 @@ class FooTest extends TestCase
857857

858858
<itemizedlist>
859859
<listitem><para><literal>setMethods(array $methods)</literal> can be called on the Mock Builder object to specify the methods that are to be replaced with a configurable test double. The behavior of the other methods is not changed. If you call <literal>setMethods(null)</literal>, then no methods will be replaced.</para></listitem>
860+
<listitem><para><literal>setMethodsExcept(array $methods)</literal> can be called on the Mock Builder object to specify the methods that will not be replaced with a configurable test double while replacing all other public methods. This works inverse to <literal>setMethods()</literal>.</para></listitem>
860861
<listitem><para><literal>setConstructorArgs(array $args)</literal> can be called to provide a parameter array that is passed to the original class' constructor (which is not replaced with a dummy implementation by default).</para></listitem>
861862
<listitem><para><literal>setMockClassName($name)</literal> can be used to specify a class name for the generated test double class.</para></listitem>
862863
<listitem><para><literal>disableOriginalConstructor()</literal> can be used to disable the call to the original class' constructor.</para></listitem>

src/7.0/en/test-doubles.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -857,6 +857,7 @@ class FooTest extends TestCase
857857

858858
<itemizedlist>
859859
<listitem><para><literal>setMethods(array $methods)</literal> can be called on the Mock Builder object to specify the methods that are to be replaced with a configurable test double. The behavior of the other methods is not changed. If you call <literal>setMethods(null)</literal>, then no methods will be replaced.</para></listitem>
860+
<listitem><para><literal>setMethodsExcept(array $methods)</literal> can be called on the Mock Builder object to specify the methods that will not be replaced with a configurable test double while replacing all other public methods. This works inverse to <literal>setMethods()</literal>.</para></listitem>
860861
<listitem><para><literal>setConstructorArgs(array $args)</literal> can be called to provide a parameter array that is passed to the original class' constructor (which is not replaced with a dummy implementation by default).</para></listitem>
861862
<listitem><para><literal>setMockClassName($name)</literal> can be used to specify a class name for the generated test double class.</para></listitem>
862863
<listitem><para><literal>disableOriginalConstructor()</literal> can be used to disable the call to the original class' constructor.</para></listitem>

0 commit comments

Comments
 (0)