@@ -7,42 +7,42 @@ |
||
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 | } |