Completed
Push — master ( 953c6b...ad658e )
by Aimeos
02:48
created
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( \Exception $e )
29
+		catch (\Exception $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( \Exception $e )
28
+		} catch( \Exception $e )
30 29
 		{
31 30
 			$this->markTestSkipped( $e->getMessage() );
32 31
 		}
Please login to merge, or discard this patch.