Completed
Push — master ( ec1d8c...21580b )
by Aimeos
04:10
created
lib/custom/tests/MW/Filesystem/FlyAwsS3Test.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -7,32 +7,32 @@
 block discarded – undo
7 7
 {
8 8
 	protected function setUp()
9 9
 	{
10
-		if( !interface_exists( '\\League\\Flysystem\\FilesystemInterface' ) ) {
11
-			$this->markTestSkipped( 'Install Flysystem first' );
10
+		if (!interface_exists('\\League\\Flysystem\\FilesystemInterface')) {
11
+			$this->markTestSkipped('Install Flysystem first');
12 12
 		}
13 13
 	}
14 14
 
15 15
 
16 16
 	public function testGetProvider()
17 17
 	{
18
-		if( !class_exists( '\League\Flysystem\AwsS3v3\AwsS3Adapter' ) ) {
19
-			$this->markTestSkipped( 'Install Flysystem AwsS3v3 adapter' );
18
+		if (!class_exists('\League\Flysystem\AwsS3v3\AwsS3Adapter')) {
19
+			$this->markTestSkipped('Install Flysystem AwsS3v3 adapter');
20 20
 		}
21 21
 
22
-		$object = new FlyAwsS3( array( 'bucket' => 'test' ) );
23
-		$this->assertInstanceof( '\Aimeos\MW\Filesystem\Iface', $object );
22
+		$object = new FlyAwsS3(array('bucket' => 'test'));
23
+		$this->assertInstanceof('\Aimeos\MW\Filesystem\Iface', $object);
24 24
 
25
-		$this->setExpectedException( 'InvalidArgumentException' );
26
-		$object->has( 'test' );
25
+		$this->setExpectedException('InvalidArgumentException');
26
+		$object->has('test');
27 27
 	}
28 28
 
29 29
 
30 30
 	public function testGetProviderNoBucket()
31 31
 	{
32
-		$object = new FlyAwsS3( array() );
33
-		$this->assertInstanceof( '\Aimeos\MW\Filesystem\Iface', $object );
32
+		$object = new FlyAwsS3(array());
33
+		$this->assertInstanceof('\Aimeos\MW\Filesystem\Iface', $object);
34 34
 
35
-		$this->setExpectedException( '\Aimeos\MW\Filesystem\Exception' );
36
-		$object->has( 'test' );
35
+		$this->setExpectedException('\Aimeos\MW\Filesystem\Exception');
36
+		$object->has('test');
37 37
 	}
38 38
 }
Please login to merge, or discard this patch.
lib/custom/tests/MW/Filesystem/FlyReplicateTest.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -7,27 +7,27 @@  discard block
 block discarded – undo
7 7
 {
8 8
 	protected function setUp()
9 9
 	{
10
-		if( !interface_exists( '\\League\\Flysystem\\FilesystemInterface' ) ) {
11
-			$this->markTestSkipped( 'Install Flysystem first' );
10
+		if (!interface_exists('\\League\\Flysystem\\FilesystemInterface')) {
11
+			$this->markTestSkipped('Install Flysystem first');
12 12
 		}
13 13
 	}
14 14
 
15 15
 
16 16
 	public function testGetProvider()
17 17
 	{
18
-		if( !class_exists( '\League\Flysystem\Replicate\ReplicateAdapter' ) ) {
19
-			$this->markTestSkipped( 'Install Flysystem Replicate adapter' );
18
+		if (!class_exists('\League\Flysystem\Replicate\ReplicateAdapter')) {
19
+			$this->markTestSkipped('Install Flysystem Replicate adapter');
20 20
 		}
21 21
 
22 22
 		$config = array(
23 23
 			'adapter' => 'Replicate',
24
-			'source' => array( 'adapter' => 'FlyMemory' ),
25
-			'replica' => array( 'adapter' => 'FlyMemory' ),
24
+			'source' => array('adapter' => 'FlyMemory'),
25
+			'replica' => array('adapter' => 'FlyMemory'),
26 26
 		);
27
-		$object = new FlyReplicate( $config );
28
-		$this->assertInstanceof( '\Aimeos\MW\Filesystem\Iface', $object );
27
+		$object = new FlyReplicate($config);
28
+		$this->assertInstanceof('\Aimeos\MW\Filesystem\Iface', $object);
29 29
 
30
-		$object->has( 'test' );
30
+		$object->has('test');
31 31
 	}
32 32
 
33 33
 
@@ -36,11 +36,11 @@  discard block
 block discarded – undo
36 36
 		$config = array(
37 37
 			'adapter' => 'Replicate',
38 38
 		);
39
-		$object = new FlyReplicate( $config );
40
-		$this->assertInstanceof( '\Aimeos\MW\Filesystem\Iface', $object );
39
+		$object = new FlyReplicate($config);
40
+		$this->assertInstanceof('\Aimeos\MW\Filesystem\Iface', $object);
41 41
 
42
-		$this->setExpectedException( 'Aimeos\MW\Filesystem\Exception' );
43
-		$object->has( 'test' );
42
+		$this->setExpectedException('Aimeos\MW\Filesystem\Exception');
43
+		$object->has('test');
44 44
 	}
45 45
 
46 46
 
@@ -48,12 +48,12 @@  discard block
 block discarded – undo
48 48
 	{
49 49
 		$config = array(
50 50
 			'adapter' => 'Replicate',
51
-			'source' => array( 'adapter' => 'FlyMemory' ),
51
+			'source' => array('adapter' => 'FlyMemory'),
52 52
 		);
53
-		$object = new FlyReplicate( $config );
54
-		$this->assertInstanceof( '\Aimeos\MW\Filesystem\Iface', $object );
53
+		$object = new FlyReplicate($config);
54
+		$this->assertInstanceof('\Aimeos\MW\Filesystem\Iface', $object);
55 55
 
56
-		$this->setExpectedException( 'Aimeos\MW\Filesystem\Exception' );
57
-		$object->has( 'test' );
56
+		$this->setExpectedException('Aimeos\MW\Filesystem\Exception');
57
+		$object->has('test');
58 58
 	}
59 59
 }
Please login to merge, or discard this patch.
lib/custom/tests/MW/Filesystem/FlyWebdavTest.php 2 patches
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -7,42 +7,42 @@
 block discarded – undo
7 7
 {
8 8
 	protected function setUp()
9 9
 	{
10
-		if( !interface_exists( '\\League\\Flysystem\\FilesystemInterface' ) ) {
11
-			$this->markTestSkipped( 'Install Flysystem first' );
10
+		if (!interface_exists('\\League\\Flysystem\\FilesystemInterface')) {
11
+			$this->markTestSkipped('Install Flysystem first');
12 12
 		}
13 13
 	}
14 14
 
15 15
 
16 16
 	public function testGetProvider()
17 17
 	{
18
-		if( !class_exists( '\League\Flysystem\WebDAV\WebDAVAdapter' ) ) {
19
-			$this->markTestSkipped( 'Install Flysystem WebDAV adapter' );
18
+		if (!class_exists('\League\Flysystem\WebDAV\WebDAVAdapter')) {
19
+			$this->markTestSkipped('Install Flysystem WebDAV adapter');
20 20
 		}
21 21
 
22 22
 		try
23 23
 		{
24
-			$object = new FlyWebdav( array( 'baseUri' => 'http://test.webdav.org/dav/' ) );
25
-			$this->assertInstanceof( '\Aimeos\MW\Filesystem\Iface', $object );
24
+			$object = new FlyWebdav(array('baseUri' => 'http://test.webdav.org/dav/'));
25
+			$this->assertInstanceof('\Aimeos\MW\Filesystem\Iface', $object);
26 26
 
27
-			$object->has( 'test' );
27
+			$object->has('test');
28 28
 		}
29
-		catch( \Sabre\HTTP\ClientException $e )
29
+		catch (\Sabre\HTTP\ClientException $e)
30 30
 		{
31
-			$this->markTestSkipped( $e->getMessage() );
31
+			$this->markTestSkipped($e->getMessage());
32 32
 		}
33 33
 	}
34 34
 
35 35
 
36 36
 	public function testGetProviderNoBaseuri()
37 37
 	{
38
-		if( !class_exists( '\League\Flysystem\WebDAV\WebDAVAdapter' ) ) {
39
-			$this->markTestSkipped( 'Install Flysystem WebDAV adapter' );
38
+		if (!class_exists('\League\Flysystem\WebDAV\WebDAVAdapter')) {
39
+			$this->markTestSkipped('Install Flysystem WebDAV adapter');
40 40
 		}
41 41
 
42
-		$object = new FlyWebdav( array() );
43
-		$this->assertInstanceof( '\Aimeos\MW\Filesystem\Iface', $object );
42
+		$object = new FlyWebdav(array());
43
+		$this->assertInstanceof('\Aimeos\MW\Filesystem\Iface', $object);
44 44
 
45
-		$this->setExpectedException( '\InvalidArgumentException' );
46
-		$object->has( 'test' );
45
+		$this->setExpectedException('\InvalidArgumentException');
46
+		$object->has('test');
47 47
 	}
48 48
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,7 @@
 block discarded – undo
25 25
 			$this->assertInstanceof( '\Aimeos\MW\Filesystem\Iface', $object );
26 26
 
27 27
 			$object->has( 'test' );
28
-		}
29
-		catch( \Sabre\HTTP\ClientException $e )
28
+		} catch( \Sabre\HTTP\ClientException $e )
30 29
 		{
31 30
 			$this->markTestSkipped( $e->getMessage() );
32 31
 		}
Please login to merge, or discard this patch.