Skip to main content

Running Unit tests

docker-compose up -d
export MONGODB_CONNECTION="mongodb://127.0.0.1/test"
export S3_CONNECTION="s3://aaa:12345678@us-east-1/mybucket?create=true&endpoint=http://127.0.0.1:4566"
export DYNAMODB_CONNECTION="dynamodb://accesskey:secretkey@us-east-1/tablename?endpoint=http://127.0.0.1:8000"
vendor/bin/phpunit

Setup the environment variables

VariableDescriptionExample
MONGODB_CONNECTIONConnection string for MongoDBmongodb://127.0.0.1/test
S3_CONNECTIONConnection string for S3s3://accesskey:secretkey@region/bucketname
DYNAMODB_CONNECTIONConnection string for DynamoDBdynamodb://accesskey:secretkey@region/tablename
CLOUDFLAREKV_CONNECTIONConnection string for Cloudflare KVkv://email:authkey@accountid/namespaceid