Aws\Symfony\DependencyInjection\AwsExtensionTest::extension_should_escape_strings_that_begin_with_at_sign PHP Method

extension_should_escape_strings_that_begin_with_at_sign() public method

    public function extension_should_escape_strings_that_begin_with_at_sign()
    {
        $extension = new AwsExtension();
        $config = ['credentials' => ['key' => '@@key', 'secret' => '@@secret']];
        $container = $this->getMock(ContainerBuilder::class, ['getDefinition', 'replaceArgument']);
        $container->expects($this->once())->method('getDefinition')->with('aws_sdk')->willReturnSelf();
        $container->expects($this->once())->method('replaceArgument')->with(0, $this->callback(function ($arg) {
            return is_array($arg) && isset($arg['credentials']) && $arg['credentials'] === ['key' => '@key', 'secret' => '@secret'];
        }));
        $extension->load([$config], $container);
    }