ImboIntegrationTest\Storage\S3Test::setUp PHP Метод

setUp() публичный Метод

Make sure we have the correct config available
public setUp ( )
    public function setUp()
    {
        foreach (['AWS_S3_KEY', 'AWS_S3_SECRET', 'AWS_S3_BUCKET'] as $key) {
            if (empty($GLOBALS[$key])) {
                $this->markTestSkipped('This test needs the ' . $key . ' value to be set in phpunit.xml');
            }
        }
        $client = S3Client::factory(['key' => $GLOBALS['AWS_S3_KEY'], 'secret' => $GLOBALS['AWS_S3_SECRET']]);
        $client->clearBucket($GLOBALS['AWS_S3_BUCKET']);
        parent::setUp();
    }