Code Duplication    Length = 8-8 lines in 2 locations

src/Tests/Unit/Adapter/LocalStorageTest.php 1 location

@@ 12-19 (lines=8) @@
9
{
10
    private $adapter;
11
12
    protected function setUp()
13
    {
14
        $this->config = [
15
            'local_storage' => ['path' => __DIR__, 'url' => 'http://files.test/'],
16
            'amazon_s3' => ['key' => '', 'secret' => '', 'region' => '', 'bucket' => ''],
17
        ];
18
        $this->adapter = (new FileSystemFactory('local_storage', $this->config, '/tmp'))->build();
19
    }
20
21
    public function testRead()
22
    {

src/Tests/Unit/Factory/FileSystemFactoryTest.php 1 location

@@ 10-17 (lines=8) @@
7
8
class FileSystemFactoryTest extends \PHPUnit_Framework_TestCase
9
{
10
    protected function setUp()
11
    {
12
        $this->config = [
13
            'local_storage' => ['path' => '', 'url' => ''],
14
            'amazon_s3' => ['key' => '', 'secret' => '', 'region' => '', 'bucket' => ''],
15
        ];
16
        $this->factory = new FileSystemFactory('local_storage', $this->config, '/tmp');
17
    }
18
19
    /**
20
     * @expectedException \Exception