@@ 6-27 (lines=22) @@ | ||
3 | namespace Aimeos\MW\Filesystem; |
|
4 | ||
5 | ||
6 | class FlyAzureTest extends \PHPUnit_Framework_TestCase |
|
7 | { |
|
8 | protected function setUp() |
|
9 | { |
|
10 | if( !interface_exists( '\\League\\Flysystem\\FilesystemInterface' ) ) { |
|
11 | $this->markTestSkipped( 'Install Flysystem first' ); |
|
12 | } |
|
13 | } |
|
14 | ||
15 | ||
16 | public function testGetProvider() |
|
17 | { |
|
18 | if( !class_exists( '\League\Flysystem\Azure\AzureAdapter' ) ) { |
|
19 | $this->markTestSkipped( 'Install Flysystem Azure adapter' ); |
|
20 | } |
|
21 | ||
22 | $object = new FlyAzure( array() ); |
|
23 | $this->assertInstanceof( '\Aimeos\MW\Filesystem\Iface', $object ); |
|
24 | ||
25 | $object->has( 'test' ); |
|
26 | } |
|
27 | } |
|
28 |
@@ 6-27 (lines=22) @@ | ||
3 | namespace Aimeos\MW\Filesystem; |
|
4 | ||
5 | ||
6 | class FlyMemoryTest extends \PHPUnit_Framework_TestCase |
|
7 | { |
|
8 | protected function setUp() |
|
9 | { |
|
10 | if( !interface_exists( '\\League\\Flysystem\\FilesystemInterface' ) ) { |
|
11 | $this->markTestSkipped( 'Install Flysystem first' ); |
|
12 | } |
|
13 | } |
|
14 | ||
15 | ||
16 | public function testGetProvider() |
|
17 | { |
|
18 | if( !class_exists( '\League\Flysystem\Memory\MemoryAdapter' ) ) { |
|
19 | $this->markTestSkipped( 'Install Flysystem memory adapter' ); |
|
20 | } |
|
21 | ||
22 | $object = new FlyMemory( array() ); |
|
23 | $this->assertInstanceof( '\Aimeos\MW\Filesystem\Iface', $object ); |
|
24 | ||
25 | $object->has( 'test' ); |
|
26 | } |
|
27 | } |
|
28 |