AwsFilesystemFacadeDecoratorTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 10
c 1
b 0
f 0
dl 0
loc 15
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testDecorator() 0 13 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 *  This file is part of the Micro framework package.
7
 *
8
 *  (c) Stanislau Komar <[email protected]>
9
 *
10
 *  For the full copyright and license information, please view the LICENSE
11
 *  file that was distributed with this source code.
12
 */
13
14
namespace Micro\Plugin\Filesystem\Adapter\Aws\Test\Unit\Decorator;
15
16
use Micro\Plugin\Filesystem\Adapter\Aws\Configuration\FilesystemS3AdapterPluginConfigurationInterface;
17
use Micro\Plugin\Filesystem\Adapter\Aws\Decorator\AwsFilesystemFacadeDecorator;
18
use Micro\Plugin\Filesystem\Business\FS\FsFactoryInterface;
19
use Micro\Plugin\Filesystem\Facade\FilesystemFacadeInterface;
20
use PHPUnit\Framework\TestCase;
21
22
class AwsFilesystemFacadeDecoratorTest extends TestCase
23
{
24
    public function testDecorator()
25
    {
26
        $decorated = $this->createMock(FilesystemFacadeInterface::class);
27
        $decorated
28
            ->expects($this->once())
29
            ->method('createFsOperator')
30
            ->with('test');
31
32
        $fsFactory = $this->createMock(FsFactoryInterface::class);
33
        $pluginCfg = $this->createMock(FilesystemS3AdapterPluginConfigurationInterface::class);
34
        $decorator = new AwsFilesystemFacadeDecorator($decorated, $fsFactory, $pluginCfg);
35
36
        $decorator->createFsOperator('test');
37
    }
38
}
39