lib/custom/tests/MW/Filesystem/FlyAzureTest.php 1 location
|
@@ 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( [] ); |
23 |
|
$this->assertInstanceof( '\Aimeos\MW\Filesystem\Iface', $object ); |
24 |
|
|
25 |
|
$object->has( 'test' ); |
26 |
|
} |
27 |
|
} |
28 |
|
|
lib/custom/tests/MW/Filesystem/FlyFtpTest.php 1 location
|
@@ 6-23 (lines=18) @@
|
3 |
|
namespace Aimeos\MW\Filesystem; |
4 |
|
|
5 |
|
|
6 |
|
class FlyFtpTest 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 |
|
$object = new FlyFtp( array( 'host' => 'ftp.heise.de' ) ); |
19 |
|
$this->assertInstanceof( '\Aimeos\MW\Filesystem\Iface', $object ); |
20 |
|
|
21 |
|
$object->has( 'test' ); |
22 |
|
} |
23 |
|
} |
24 |
|
|
lib/custom/tests/MW/Filesystem/FlyMemoryTest.php 1 location
|
@@ 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( [] ); |
23 |
|
$this->assertInstanceof( '\Aimeos\MW\Filesystem\Iface', $object ); |
24 |
|
|
25 |
|
$object->has( 'test' ); |
26 |
|
} |
27 |
|
} |
28 |
|
|
lib/custom/tests/MW/Filesystem/FlyNoneTest.php 1 location
|
@@ 6-23 (lines=18) @@
|
3 |
|
namespace Aimeos\MW\Filesystem; |
4 |
|
|
5 |
|
|
6 |
|
class FlyNoneTest 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 |
|
$object = new FlyNone( [] ); |
19 |
|
$this->assertInstanceof( '\Aimeos\MW\Filesystem\Iface', $object ); |
20 |
|
|
21 |
|
$object->has( 'test' ); |
22 |
|
} |
23 |
|
} |
24 |
|
|