Aws\Silex\AwsServiceProviderTest::testNoConfigProvided PHP Method

testNoConfigProvided() public method

    public function testNoConfigProvided()
    {
        // Setup the Silex app and AWS service provider
        $app = new Application();
        $provider = new AwsServiceProvider();
        $app->register($provider, array('aws.config' => array('credentials' => ['key' => 'fake-aws-key', 'secret' => 'fake-aws-secret'])));
        // Instantiate a client, which should trigger an exception for missing configs
        $s3 = $app['aws']->createS3();
    }