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

Commit 450b254

Browse files
winkbracesebastianbergmann
authored andcommitted
Add note about the way exception messages are compared.
1 parent 02038bd commit 450b254

13 files changed

+130
-0
lines changed

src/5.2/en/writing-tests-for-phpunit.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,16 @@ Tests: 1, Assertions: 1, Failures: 1.</screen>
607607
expectations for exceptions raised by the code under test.
608608
</para>
609609

610+
<note>
611+
<para>
612+
<indexterm><primary>expectExceptionMessage()</primary></indexterm>
613+
614+
Note that expectExceptionMessage asserts that the <literal>$actual</literal>
615+
message contains the <literal>$expected</literal> message and doesn't perform
616+
an exact string comparison.
617+
</para>
618+
</note>
619+
610620
<para>
611621
<indexterm><primary>Annotation</primary></indexterm>
612622
<indexterm><primary>@expectedException</primary></indexterm>

src/5.3/en/writing-tests-for-phpunit.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,16 @@ Tests: 1, Assertions: 1, Failures: 1.</screen>
607607
expectations for exceptions raised by the code under test.
608608
</para>
609609

610+
<note>
611+
<para>
612+
<indexterm><primary>expectExceptionMessage()</primary></indexterm>
613+
614+
Note that expectExceptionMessage asserts that the <literal>$actual</literal>
615+
message contains the <literal>$expected</literal> message and doesn't perform
616+
an exact string comparison.
617+
</para>
618+
</note>
619+
610620
<para>
611621
<indexterm><primary>Annotation</primary></indexterm>
612622
<indexterm><primary>@expectedException</primary></indexterm>

src/5.4/en/writing-tests-for-phpunit.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,16 @@ Tests: 1, Assertions: 1, Failures: 1.</screen>
627627
expectations for exceptions raised by the code under test.
628628
</para>
629629

630+
<note>
631+
<para>
632+
<indexterm><primary>expectExceptionMessage()</primary></indexterm>
633+
634+
Note that expectExceptionMessage asserts that the <literal>$actual</literal>
635+
message contains the <literal>$expected</literal> message and doesn't perform
636+
an exact string comparison.
637+
</para>
638+
</note>
639+
630640
<para>
631641
<indexterm><primary>Annotation</primary></indexterm>
632642
<indexterm><primary>@expectedException</primary></indexterm>

src/5.5/en/writing-tests-for-phpunit.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,16 @@ Tests: 1, Assertions: 1, Failures: 1.</screen>
627627
expectations for exceptions raised by the code under test.
628628
</para>
629629

630+
<note>
631+
<para>
632+
<indexterm><primary>expectExceptionMessage()</primary></indexterm>
633+
634+
Note that expectExceptionMessage asserts that the <literal>$actual</literal>
635+
message contains the <literal>$expected</literal> message and doesn't perform
636+
an exact string comparison.
637+
</para>
638+
</note>
639+
630640
<para>
631641
<indexterm><primary>Annotation</primary></indexterm>
632642
<indexterm><primary>@expectedException</primary></indexterm>

src/5.6/en/writing-tests-for-phpunit.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,16 @@ Tests: 1, Assertions: 1, Failures: 1.</screen>
627627
expectations for exceptions raised by the code under test.
628628
</para>
629629

630+
<note>
631+
<para>
632+
<indexterm><primary>expectExceptionMessage()</primary></indexterm>
633+
634+
Note that expectExceptionMessage asserts that the <literal>$actual</literal>
635+
message contains the <literal>$expected</literal> message and doesn't perform
636+
an exact string comparison.
637+
</para>
638+
</note>
639+
630640
<para>
631641
<indexterm><primary>Annotation</primary></indexterm>
632642
<indexterm><primary>@expectedException</primary></indexterm>

src/5.7/en/writing-tests-for-phpunit.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,16 @@ Tests: 1, Assertions: 1, Failures: 1.</screen>
627627
expectations for exceptions raised by the code under test.
628628
</para>
629629

630+
<note>
631+
<para>
632+
<indexterm><primary>expectExceptionMessage()</primary></indexterm>
633+
634+
Note that expectExceptionMessage asserts that the <literal>$actual</literal>
635+
message contains the <literal>$expected</literal> message and doesn't perform
636+
an exact string comparison.
637+
</para>
638+
</note>
639+
630640
<para>
631641
<indexterm><primary>Annotation</primary></indexterm>
632642
<indexterm><primary>@expectedException</primary></indexterm>

src/6.0/en/writing-tests-for-phpunit.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,16 @@ Tests: 1, Assertions: 1, Failures: 1.</screen>
627627
expectations for exceptions raised by the code under test.
628628
</para>
629629

630+
<note>
631+
<para>
632+
<indexterm><primary>expectExceptionMessage()</primary></indexterm>
633+
634+
Note that expectExceptionMessage asserts that the <literal>$actual</literal>
635+
message contains the <literal>$expected</literal> message and doesn't perform
636+
an exact string comparison.
637+
</para>
638+
</note>
639+
630640
<para>
631641
<indexterm><primary>Annotation</primary></indexterm>
632642
<indexterm><primary>@expectedException</primary></indexterm>

src/6.1/en/writing-tests-for-phpunit.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,16 @@ Tests: 1, Assertions: 1, Failures: 1.</screen>
627627
expectations for exceptions raised by the code under test.
628628
</para>
629629

630+
<note>
631+
<para>
632+
<indexterm><primary>expectExceptionMessage()</primary></indexterm>
633+
634+
Note that expectExceptionMessage asserts that the <literal>$actual</literal>
635+
message contains the <literal>$expected</literal> message and doesn't perform
636+
an exact string comparison.
637+
</para>
638+
</note>
639+
630640
<para>
631641
<indexterm><primary>Annotation</primary></indexterm>
632642
<indexterm><primary>@expectedException</primary></indexterm>

src/6.2/en/writing-tests-for-phpunit.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,16 @@ Tests: 1, Assertions: 1, Failures: 1.</screen>
627627
expectations for exceptions raised by the code under test.
628628
</para>
629629

630+
<note>
631+
<para>
632+
<indexterm><primary>expectExceptionMessage()</primary></indexterm>
633+
634+
Note that expectExceptionMessage asserts that the <literal>$actual</literal>
635+
message contains the <literal>$expected</literal> message and doesn't perform
636+
an exact string comparison.
637+
</para>
638+
</note>
639+
630640
<para>
631641
<indexterm><primary>Annotation</primary></indexterm>
632642
<indexterm><primary>@expectedException</primary></indexterm>

src/6.3/en/writing-tests-for-phpunit.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,16 @@ Tests: 1, Assertions: 1, Failures: 1.</screen>
627627
expectations for exceptions raised by the code under test.
628628
</para>
629629

630+
<note>
631+
<para>
632+
<indexterm><primary>expectExceptionMessage()</primary></indexterm>
633+
634+
Note that expectExceptionMessage asserts that the <literal>$actual</literal>
635+
message contains the <literal>$expected</literal> message and doesn't perform
636+
an exact string comparison.
637+
</para>
638+
</note>
639+
630640
<para>
631641
<indexterm><primary>Annotation</primary></indexterm>
632642
<indexterm><primary>@expectedException</primary></indexterm>

src/6.4/en/writing-tests-for-phpunit.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,16 @@ Tests: 1, Assertions: 1, Failures: 1.</screen>
627627
expectations for exceptions raised by the code under test.
628628
</para>
629629

630+
<note>
631+
<para>
632+
<indexterm><primary>expectExceptionMessage()</primary></indexterm>
633+
634+
Note that expectExceptionMessage asserts that the <literal>$actual</literal>
635+
message contains the <literal>$expected</literal> message and doesn't perform
636+
an exact string comparison.
637+
</para>
638+
</note>
639+
630640
<para>
631641
<indexterm><primary>Annotation</primary></indexterm>
632642
<indexterm><primary>@expectedException</primary></indexterm>

src/6.5/en/writing-tests-for-phpunit.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,16 @@ Tests: 1, Assertions: 1, Failures: 1.</screen>
627627
expectations for exceptions raised by the code under test.
628628
</para>
629629

630+
<note>
631+
<para>
632+
<indexterm><primary>expectExceptionMessage()</primary></indexterm>
633+
634+
Note that expectExceptionMessage asserts that the <literal>$actual</literal>
635+
message contains the <literal>$expected</literal> message and doesn't perform
636+
an exact string comparison.
637+
</para>
638+
</note>
639+
630640
<para>
631641
<indexterm><primary>Annotation</primary></indexterm>
632642
<indexterm><primary>@expectedException</primary></indexterm>

src/7.0/en/writing-tests-for-phpunit.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,16 @@ Tests: 1, Assertions: 1, Failures: 1.</screen>
627627
expectations for exceptions raised by the code under test.
628628
</para>
629629

630+
<note>
631+
<para>
632+
<indexterm><primary>expectExceptionMessage()</primary></indexterm>
633+
634+
Note that expectExceptionMessage asserts that the <literal>$actual</literal>
635+
message contains the <literal>$expected</literal> message and doesn't perform
636+
an exact string comparison.
637+
</para>
638+
</note>
639+
630640
<para>
631641
<indexterm><primary>Annotation</primary></indexterm>
632642
<indexterm><primary>@expectedException</primary></indexterm>

0 commit comments

Comments
 (0)