Code Duplication    Length = 18-18 lines in 2 locations

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.kernel.org' ) );
19
		$this->assertInstanceof( '\Aimeos\MW\Filesystem\Iface', $object );
20
21
		$object->has( 'test' );
22
	}
23
}
24

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( array() );
19
		$this->assertInstanceof( '\Aimeos\MW\Filesystem\Iface', $object );
20
21
		$object->has( 'test' );
22
	}
23
}
24