CommonPHP Notifications includes a package-local PHPUnit configuration and unit tests.
From the package directory:
composer installFrom the monorepo, the root vendor directory can also satisfy the test suite because tests/bootstrap.php checks both package and workspace autoloaders.
From the monorepo root:
vendor/bin/phpunit -c package/notifications/phpunit.xml.distOn Windows:
vendor\bin\phpunit.bat -c package\notifications\phpunit.xml.distFrom package/notifications:
../../vendor/bin/phpunit -c phpunit.xml.distThe unit suite covers:
Recipientconstruction, factories, array normalization,Stringablevalues, metadata, channel overrides, serialization, and invalid payloads;Notificationconstruction, template factory, recipient channel filtering, copy methods, data, metadata, tags, serialization, generated ids, and invalid content;DeliveryStatus,DeliveryResult, andDeliveryReportstatus helpers, details, serialization, filtering, iteration, counting, and exception escalation;ChannelRegistryregistration, defaults, replacement, removal, clearing, iteration, duplicate detection, missing channels, and invalid channel names;Notifierdirect sends, template sends, channel facade, multi-channel sends, channel management, missing recipients, unsupported drivers, driver exception handling, and invalid driver results;ArrayNotificationDriver,NullNotificationDriver, andAbstractNotificationDriverhelper behavior;NotificationsServiceProviderPHP-DI wiring;- all package exception factories.
Manual review should cover provider-specific driver packages, template rendering decisions, queue integration, retry policy, and operational logging in the application that consumes this package.