Total Complexity | 5 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
6 | class FlyLocalTest extends \PHPUnit\Framework\TestCase |
||
7 | { |
||
8 | protected function setUp() : void |
||
9 | { |
||
10 | if( !class_exists( '\\League\\Flysystem\\Filesystem' ) |
||
11 | || !class_exists( '\\League\\Flysystem\\Local\\LocalFilesystemAdapter' ) |
||
12 | ) { |
||
13 | $this->markTestSkipped( 'Install Flysystem first' ); |
||
14 | } |
||
15 | } |
||
16 | |||
17 | |||
18 | public function testGetProvider() |
||
19 | { |
||
20 | $object = new FlyLocal( array( 'basedir' => dirname( dirname( __DIR__ ) ) ) ); |
||
21 | $this->assertInstanceof( \Aimeos\Base\Filesystem\Iface::class, $object ); |
||
22 | |||
23 | $object->has( 'test' ); |
||
24 | } |
||
25 | |||
26 | |||
27 | public function testGetProviderNoBasedir() |
||
34 | } |
||
35 | } |
||
36 |