@@ 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 | { |
@@ 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 |