expectException() 사용 사례를 보고합니다.
\PHPUnit\Framework\Error\Deprecated,
\PHPUnit\Framework\Error\Error,
\PHPUnit\Framework\Error\Notice 및 \PHPUnit\Framework\Error\Warning을 사용한 expectException() 메서드는 곧 사용할 수 없게 되며 PHPUnit 10에서 제거됩니다.
대신 expectDeprecation(), expectError(), expectNotice() 및 expectWarning() 메서드를 사용해야합니다.
자세한 내용은 Testing PHP Errors, Warnings, and Notices(phpunit.readthedocs.io)를 참조하세요.