dev-master
9999999-dev http://github.com/polevaultweb/s3-filesystemAmazon S3 extension of the Codeception Filesystem module.
MIT
The Requires
- php >=5.4.0
- codeception/codeception ~2.0
- aws/aws-sdk-php 3.*
s3 aws codeception
Wallogit.com
2017 © Pedro Peláez
Amazon S3 extension of the Codeception Filesystem module.
An Amazon S3 Filesystem module for Codeception., (*1)
To install simply require the package in the composer.json file like, (*2)
"require-dev":
{
"polevaultweb/s3-filesystem": "master@dev"
}
and then use composer update to fetch the package.
After that follow the configuration instructions below., (*3)
S3Filesystem extends Filesystem module hence any parameter required and available to that module is required and available in S3Filesystem as well.
In the suite .yml configuration file add the module among the loaded ones:, (*4)
modules:
enabled:
- S3Filesystem
config:
S3Filesystem:
accessKey: xxxxxxxxxxxx
accessSecret: xxxxxxxxxxxxxxxxxxxxxxxx
And assertions, (*5)
$I = new AcceptanceTester( $scenario ); $I->setBucket( 'my-bucket' ); $I->seeFile( 'path/to/file.jpg' ); $I->seeBucketLocation( 'eu-west-1' );
Or for single uses you can chain like so:, (*6)
$I = new AcceptanceTester( $scenario ); $I->setBucket( 'my-bucket' )->seeFile( 'path/to/file.jpg' );
Amazon S3 extension of the Codeception Filesystem module.
MIT
s3 aws codeception