The PHP Unit Testing framework.
method()
on a test stub created using createStubForIntersectionOfInterfaces()
throws an unexpected exception#[DisableReturnValueGenerationForTestDoubles]
attribute for disabling return value generation for test doubles created using createMock()
, createMockForIntersectionOfInterfaces()
, createPartialMock()
, createStub()
, and createStubForIntersectionOfInterfaces()
#[CoversMethod]
and #[UsesMethod]
attributes for more fine-grained code coverage targeting--filter
, --exclude-filter
, --group
, and --exclude-group
when listing tests using --list-tests
and --list-tests-xml
as well as listing groups with --list-groups
#[CoversClass]
and #[UsesClass]
attributes--only-summary-for-coverage-text
CLI option to reduce the code coverage report in text format to a summary--show-uncovered-for-coverage-text
CLI option to expand the code coverage report in text format to include a list of uncovered files--generate-configuration
now generates <source ignoreIndirectDeprecations="true" restrictNotices="true" restrictWarnings="true">
instead of <source restrictDeprecations="true" restrictNotices="true" restrictWarnings="true">
--group
, --exclude-group
, --covers
, --uses
, and --test-suffix
CLI options to be used multiple timesPHPUnit\Framework\TestCase::__construct()
is now annotated to be final in preparation for declaring it final
in PHPUnit 12DeprecationTriggered
, ErrorTriggered
, NoticeTriggered
, PhpDeprecationTriggered
, PhpNoticeTriggered
, PhpWarningTriggered
, and WarningTriggered
events are represented as textrestrictDeprecations
attribute on the <source>
element of the XML configuration file is now deprecated in favor of the ignoreSelfDeprecations
, ignoreDirectDeprecations
, and ignoreIndirectDeprecations
attributes--group
, --exclude-group
, --covers
, --uses
, and --test-suffix
CLI options