polevaultweb/s3-filesystem
最新稳定版本:2.0
Composer 安装命令:
composer require polevaultweb/s3-filesystem
包简介
Amazon S3 extension of the Codeception Filesystem module.
关键字:
README 文档
README
An Amazon S3 Filesystem module for Codeception.
Installation
To install simply require the package in the composer.json file like
"require-dev": { "polevaultweb/s3-filesystem": "master@dev" }
and then use composer update to fetch the package.
After that follow the configuration instructions below.
S3Filesystem configuration
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:
modules: enabled: - S3Filesystem config: S3Filesystem: accessKey: xxxxxxxxxxxx accessSecret: xxxxxxxxxxxxxxxxxxxxxxxx
Supports
- doesFileExist
- doesBucketExist
- deleteBucket
- getBucketLocation
And assertions
- seeFile
- seeBucket
- seeBucketLocation
Usage
$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:
$I = new AcceptanceTester( $scenario ); $I->setBucket( 'my-bucket' )->seeFile( 'path/to/file.jpg' );
统计信息
- 总下载量: 42.94k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-01-27