@@ -589,7 +589,7 @@ whether an exception is thrown by the code under test.
589
589
There was 1 failure:
590
590
591
591
1) ExceptionTest::testException
592
- Expected exception InvalidArgumentException
592
+ Failed asserting that exception of type " InvalidArgumentException" is thrown.
593
593
594
594
FAILURES!
595
595
Tests: 1, Assertions: 1, Failures: 1.
@@ -644,7 +644,7 @@ shows an example.
644
644
There was 1 failure:
645
645
646
646
1) ExceptionTest::testException
647
- Expected exception InvalidArgumentException
647
+ Failed asserting that exception of type " InvalidArgumentException" is thrown.
648
648
649
649
FAILURES!
650
650
Tests: 1, Assertions: 1, Failures: 1.
@@ -676,7 +676,7 @@ shown in :numref:`writing-tests-for-phpunit.exceptions.examples.ErrorTest.php`.
676
676
class ExpectedErrorTest extends TestCase
677
677
{
678
678
/**
679
- * @expectedException PHPUnit\Framework\Error
679
+ * @expectedException PHPUnit\Framework\Error\Error
680
680
*/
681
681
public function testFailingInclude()
682
682
{
@@ -706,7 +706,7 @@ and warnings, respectively.
706
706
for classes that are too generic might lead to undesirable
707
707
side-effects. Accordingly, testing for the ``Exception ``
708
708
class with ``@expectedException `` or
709
- ``setExpectedException () `` is no longer permitted.
709
+ ``expectException () `` is no longer permitted.
710
710
711
711
When testing that relies on php functions that trigger errors like
712
712
``fopen `` it can sometimes be useful to use error
0 commit comments