PPS-PHP uses PHPUnit.
composer testcomposer test:unitcomposer test:integrationcomposer test:coverageUse FixedTimeProvider for deterministic tests.
use Pps\Util\FixedTimeProvider;
$time = new FixedTimeProvider(1769174400);
$epoch = $time->epoch();Advance time:
$time->advance(30);Use InMemoryStorage for tests.
use Pps\Storage\InMemoryStorage;
$storage = new InMemoryStorage();tests/Unit/Crypto
tests/Unit/Encoding
tests/Unit/Payload
tests/Unit/Trust
tests/Unit/Key
tests/Unit/Verification
tests/Integration