Skip to content
This repository has been archived by the owner on Apr 12, 2018. It is now read-only.

Commit

Permalink
Add note about the way exception messages are compared.
Browse files Browse the repository at this point in the history
  • Loading branch information
winkbrace authored and sebastianbergmann committed Jan 16, 2018
1 parent 02038bd commit 450b254
Show file tree
Hide file tree
Showing 13 changed files with 130 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/5.2/en/writing-tests-for-phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,16 @@ Tests: 1, Assertions: 1, Failures: 1.</screen>
expectations for exceptions raised by the code under test.
</para>

<note>
<para>
<indexterm><primary>expectExceptionMessage()</primary></indexterm>

Note that expectExceptionMessage asserts that the <literal>$actual</literal>
message contains the <literal>$expected</literal> message and doesn't perform
an exact string comparison.
</para>
</note>

<para>
<indexterm><primary>Annotation</primary></indexterm>
<indexterm><primary>@expectedException</primary></indexterm>
Expand Down
10 changes: 10 additions & 0 deletions src/5.3/en/writing-tests-for-phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,16 @@ Tests: 1, Assertions: 1, Failures: 1.</screen>
expectations for exceptions raised by the code under test.
</para>

<note>
<para>
<indexterm><primary>expectExceptionMessage()</primary></indexterm>

Note that expectExceptionMessage asserts that the <literal>$actual</literal>
message contains the <literal>$expected</literal> message and doesn't perform
an exact string comparison.
</para>
</note>

<para>
<indexterm><primary>Annotation</primary></indexterm>
<indexterm><primary>@expectedException</primary></indexterm>
Expand Down
10 changes: 10 additions & 0 deletions src/5.4/en/writing-tests-for-phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,16 @@ Tests: 1, Assertions: 1, Failures: 1.</screen>
expectations for exceptions raised by the code under test.
</para>

<note>
<para>
<indexterm><primary>expectExceptionMessage()</primary></indexterm>

Note that expectExceptionMessage asserts that the <literal>$actual</literal>
message contains the <literal>$expected</literal> message and doesn't perform
an exact string comparison.
</para>
</note>

<para>
<indexterm><primary>Annotation</primary></indexterm>
<indexterm><primary>@expectedException</primary></indexterm>
Expand Down
10 changes: 10 additions & 0 deletions src/5.5/en/writing-tests-for-phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,16 @@ Tests: 1, Assertions: 1, Failures: 1.</screen>
expectations for exceptions raised by the code under test.
</para>

<note>
<para>
<indexterm><primary>expectExceptionMessage()</primary></indexterm>

Note that expectExceptionMessage asserts that the <literal>$actual</literal>
message contains the <literal>$expected</literal> message and doesn't perform
an exact string comparison.
</para>
</note>

<para>
<indexterm><primary>Annotation</primary></indexterm>
<indexterm><primary>@expectedException</primary></indexterm>
Expand Down
10 changes: 10 additions & 0 deletions src/5.6/en/writing-tests-for-phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,16 @@ Tests: 1, Assertions: 1, Failures: 1.</screen>
expectations for exceptions raised by the code under test.
</para>

<note>
<para>
<indexterm><primary>expectExceptionMessage()</primary></indexterm>

Note that expectExceptionMessage asserts that the <literal>$actual</literal>
message contains the <literal>$expected</literal> message and doesn't perform
an exact string comparison.
</para>
</note>

<para>
<indexterm><primary>Annotation</primary></indexterm>
<indexterm><primary>@expectedException</primary></indexterm>
Expand Down
10 changes: 10 additions & 0 deletions src/5.7/en/writing-tests-for-phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,16 @@ Tests: 1, Assertions: 1, Failures: 1.</screen>
expectations for exceptions raised by the code under test.
</para>

<note>
<para>
<indexterm><primary>expectExceptionMessage()</primary></indexterm>

Note that expectExceptionMessage asserts that the <literal>$actual</literal>
message contains the <literal>$expected</literal> message and doesn't perform
an exact string comparison.
</para>
</note>

<para>
<indexterm><primary>Annotation</primary></indexterm>
<indexterm><primary>@expectedException</primary></indexterm>
Expand Down
10 changes: 10 additions & 0 deletions src/6.0/en/writing-tests-for-phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,16 @@ Tests: 1, Assertions: 1, Failures: 1.</screen>
expectations for exceptions raised by the code under test.
</para>

<note>
<para>
<indexterm><primary>expectExceptionMessage()</primary></indexterm>

Note that expectExceptionMessage asserts that the <literal>$actual</literal>
message contains the <literal>$expected</literal> message and doesn't perform
an exact string comparison.
</para>
</note>

<para>
<indexterm><primary>Annotation</primary></indexterm>
<indexterm><primary>@expectedException</primary></indexterm>
Expand Down
10 changes: 10 additions & 0 deletions src/6.1/en/writing-tests-for-phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,16 @@ Tests: 1, Assertions: 1, Failures: 1.</screen>
expectations for exceptions raised by the code under test.
</para>

<note>
<para>
<indexterm><primary>expectExceptionMessage()</primary></indexterm>

Note that expectExceptionMessage asserts that the <literal>$actual</literal>
message contains the <literal>$expected</literal> message and doesn't perform
an exact string comparison.
</para>
</note>

<para>
<indexterm><primary>Annotation</primary></indexterm>
<indexterm><primary>@expectedException</primary></indexterm>
Expand Down
10 changes: 10 additions & 0 deletions src/6.2/en/writing-tests-for-phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,16 @@ Tests: 1, Assertions: 1, Failures: 1.</screen>
expectations for exceptions raised by the code under test.
</para>

<note>
<para>
<indexterm><primary>expectExceptionMessage()</primary></indexterm>

Note that expectExceptionMessage asserts that the <literal>$actual</literal>
message contains the <literal>$expected</literal> message and doesn't perform
an exact string comparison.
</para>
</note>

<para>
<indexterm><primary>Annotation</primary></indexterm>
<indexterm><primary>@expectedException</primary></indexterm>
Expand Down
10 changes: 10 additions & 0 deletions src/6.3/en/writing-tests-for-phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,16 @@ Tests: 1, Assertions: 1, Failures: 1.</screen>
expectations for exceptions raised by the code under test.
</para>

<note>
<para>
<indexterm><primary>expectExceptionMessage()</primary></indexterm>

Note that expectExceptionMessage asserts that the <literal>$actual</literal>
message contains the <literal>$expected</literal> message and doesn't perform
an exact string comparison.
</para>
</note>

<para>
<indexterm><primary>Annotation</primary></indexterm>
<indexterm><primary>@expectedException</primary></indexterm>
Expand Down
10 changes: 10 additions & 0 deletions src/6.4/en/writing-tests-for-phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,16 @@ Tests: 1, Assertions: 1, Failures: 1.</screen>
expectations for exceptions raised by the code under test.
</para>

<note>
<para>
<indexterm><primary>expectExceptionMessage()</primary></indexterm>

Note that expectExceptionMessage asserts that the <literal>$actual</literal>
message contains the <literal>$expected</literal> message and doesn't perform
an exact string comparison.
</para>
</note>

<para>
<indexterm><primary>Annotation</primary></indexterm>
<indexterm><primary>@expectedException</primary></indexterm>
Expand Down
10 changes: 10 additions & 0 deletions src/6.5/en/writing-tests-for-phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,16 @@ Tests: 1, Assertions: 1, Failures: 1.</screen>
expectations for exceptions raised by the code under test.
</para>

<note>
<para>
<indexterm><primary>expectExceptionMessage()</primary></indexterm>

Note that expectExceptionMessage asserts that the <literal>$actual</literal>
message contains the <literal>$expected</literal> message and doesn't perform
an exact string comparison.
</para>
</note>

<para>
<indexterm><primary>Annotation</primary></indexterm>
<indexterm><primary>@expectedException</primary></indexterm>
Expand Down
10 changes: 10 additions & 0 deletions src/7.0/en/writing-tests-for-phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,16 @@ Tests: 1, Assertions: 1, Failures: 1.</screen>
expectations for exceptions raised by the code under test.
</para>

<note>
<para>
<indexterm><primary>expectExceptionMessage()</primary></indexterm>

Note that expectExceptionMessage asserts that the <literal>$actual</literal>
message contains the <literal>$expected</literal> message and doesn't perform
an exact string comparison.
</para>
</note>

<para>
<indexterm><primary>Annotation</primary></indexterm>
<indexterm><primary>@expectedException</primary></indexterm>
Expand Down

0 comments on commit 450b254

Please sign in to comment.