FlyMemoryTest   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 20
rs 10
c 0
b 0
f 0
wmc 4

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testGetProvider() 0 6 1
A setUp() 0 8 3
1
<?php
2
3
namespace Aimeos\Base\Filesystem;
4
5
6
class FlyMemoryTest extends \PHPUnit\Framework\TestCase
7
{
8
	protected function setUp() : void
9
	{
10
		if( !class_exists( '\\League\\Flysystem\\Filesystem' ) ) {
11
			$this->markTestSkipped( 'Install Flysystem first' );
12
		}
13
14
		if( !class_exists( '\League\Flysystem\InMemory\InMemoryFilesystemAdapter' ) ) {
15
			$this->markTestSkipped( 'Install Flysystem memory adapter' );
16
		}
17
	}
18
19
20
	public function testGetProvider()
21
	{
22
		$object = new FlyMemory( [] );
23
		$this->assertInstanceof( \Aimeos\Base\Filesystem\Iface::class, $object );
24
25
		$object->has( 'test' );
26
	}
27
}
28