@@ -7,19 +7,19 @@ |
||
7 | 7 | { |
8 | 8 | public function testGetProvider() |
9 | 9 | { |
10 | - $object = new FlyLocal( array( 'basedir' => dirname( dirname( __DIR__ ) ) ) ); |
|
11 | - $this->assertInstanceof( '\Aimeos\MW\Filesystem\Iface', $object ); |
|
10 | + $object = new FlyLocal(array('basedir' => dirname(dirname(__DIR__)))); |
|
11 | + $this->assertInstanceof('\Aimeos\MW\Filesystem\Iface', $object); |
|
12 | 12 | |
13 | - $object->has( 'test' ); |
|
13 | + $object->has('test'); |
|
14 | 14 | } |
15 | 15 | |
16 | 16 | |
17 | 17 | public function testGetProviderNoBasedir() |
18 | 18 | { |
19 | - $object = new FlyLocal( array() ); |
|
20 | - $this->assertInstanceof( '\Aimeos\MW\Filesystem\Iface', $object ); |
|
19 | + $object = new FlyLocal(array()); |
|
20 | + $this->assertInstanceof('\Aimeos\MW\Filesystem\Iface', $object); |
|
21 | 21 | |
22 | - $this->setExpectedException( 'Aimeos\MW\Filesystem\Exception' ); |
|
23 | - $object->has( 'test' ); |
|
22 | + $this->setExpectedException('Aimeos\MW\Filesystem\Exception'); |
|
23 | + $object->has('test'); |
|
24 | 24 | } |
25 | 25 | } |
@@ -7,19 +7,19 @@ discard block |
||
7 | 7 | { |
8 | 8 | public function testGetProvider() |
9 | 9 | { |
10 | - if( !class_exists( '\League\Flysystem\Replicate\ReplicateAdapter' ) ) { |
|
11 | - $this->markTestSkipped( 'Install Flysystem Replicate adapter' ); |
|
10 | + if (!class_exists('\League\Flysystem\Replicate\ReplicateAdapter')) { |
|
11 | + $this->markTestSkipped('Install Flysystem Replicate adapter'); |
|
12 | 12 | } |
13 | 13 | |
14 | 14 | $config = array( |
15 | 15 | 'adapter' => 'Replicate', |
16 | - 'source' => array( 'adapter' => 'FlyMemory' ), |
|
17 | - 'replica' => array( 'adapter' => 'FlyMemory' ), |
|
16 | + 'source' => array('adapter' => 'FlyMemory'), |
|
17 | + 'replica' => array('adapter' => 'FlyMemory'), |
|
18 | 18 | ); |
19 | - $object = new FlyReplicate( $config ); |
|
20 | - $this->assertInstanceof( '\Aimeos\MW\Filesystem\Iface', $object ); |
|
19 | + $object = new FlyReplicate($config); |
|
20 | + $this->assertInstanceof('\Aimeos\MW\Filesystem\Iface', $object); |
|
21 | 21 | |
22 | - $object->has( 'test' ); |
|
22 | + $object->has('test'); |
|
23 | 23 | } |
24 | 24 | |
25 | 25 | |
@@ -28,11 +28,11 @@ discard block |
||
28 | 28 | $config = array( |
29 | 29 | 'adapter' => 'Replicate', |
30 | 30 | ); |
31 | - $object = new FlyReplicate( $config ); |
|
32 | - $this->assertInstanceof( '\Aimeos\MW\Filesystem\Iface', $object ); |
|
31 | + $object = new FlyReplicate($config); |
|
32 | + $this->assertInstanceof('\Aimeos\MW\Filesystem\Iface', $object); |
|
33 | 33 | |
34 | - $this->setExpectedException( 'Aimeos\MW\Filesystem\Exception' ); |
|
35 | - $object->has( 'test' ); |
|
34 | + $this->setExpectedException('Aimeos\MW\Filesystem\Exception'); |
|
35 | + $object->has('test'); |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | |
@@ -40,12 +40,12 @@ discard block |
||
40 | 40 | { |
41 | 41 | $config = array( |
42 | 42 | 'adapter' => 'Replicate', |
43 | - 'source' => array( 'adapter' => 'FlyMemory' ), |
|
43 | + 'source' => array('adapter' => 'FlyMemory'), |
|
44 | 44 | ); |
45 | - $object = new FlyReplicate( $config ); |
|
46 | - $this->assertInstanceof( '\Aimeos\MW\Filesystem\Iface', $object ); |
|
45 | + $object = new FlyReplicate($config); |
|
46 | + $this->assertInstanceof('\Aimeos\MW\Filesystem\Iface', $object); |
|
47 | 47 | |
48 | - $this->setExpectedException( 'Aimeos\MW\Filesystem\Exception' ); |
|
49 | - $object->has( 'test' ); |
|
48 | + $this->setExpectedException('Aimeos\MW\Filesystem\Exception'); |
|
49 | + $object->has('test'); |
|
50 | 50 | } |
51 | 51 | } |
@@ -7,27 +7,27 @@ |
||
7 | 7 | { |
8 | 8 | public function testGetProvider() |
9 | 9 | { |
10 | - if( !class_exists( '\League\Flysystem\WebDAV\WebDAVAdapter' ) ) { |
|
11 | - $this->markTestSkipped( 'Install Flysystem WebDAV adapter' ); |
|
10 | + if (!class_exists('\League\Flysystem\WebDAV\WebDAVAdapter')) { |
|
11 | + $this->markTestSkipped('Install Flysystem WebDAV adapter'); |
|
12 | 12 | } |
13 | 13 | |
14 | - $object = new FlyWebdav( array( 'baseUri' => 'http://test.webdav.org/dav/' ) ); |
|
15 | - $this->assertInstanceof( '\Aimeos\MW\Filesystem\Iface', $object ); |
|
14 | + $object = new FlyWebdav(array('baseUri' => 'http://test.webdav.org/dav/')); |
|
15 | + $this->assertInstanceof('\Aimeos\MW\Filesystem\Iface', $object); |
|
16 | 16 | |
17 | - $object->has( 'test' ); |
|
17 | + $object->has('test'); |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | |
21 | 21 | public function testGetProviderNoBaseuri() |
22 | 22 | { |
23 | - if( !class_exists( '\League\Flysystem\WebDAV\WebDAVAdapter' ) ) { |
|
24 | - $this->markTestSkipped( 'Install Flysystem WebDAV adapter' ); |
|
23 | + if (!class_exists('\League\Flysystem\WebDAV\WebDAVAdapter')) { |
|
24 | + $this->markTestSkipped('Install Flysystem WebDAV adapter'); |
|
25 | 25 | } |
26 | 26 | |
27 | - $object = new FlyWebdav( array() ); |
|
28 | - $this->assertInstanceof( '\Aimeos\MW\Filesystem\Iface', $object ); |
|
27 | + $object = new FlyWebdav(array()); |
|
28 | + $this->assertInstanceof('\Aimeos\MW\Filesystem\Iface', $object); |
|
29 | 29 | |
30 | - $this->setExpectedException( '\InvalidArgumentException' ); |
|
31 | - $object->has( 'test' ); |
|
30 | + $this->setExpectedException('\InvalidArgumentException'); |
|
31 | + $object->has('test'); |
|
32 | 32 | } |
33 | 33 | } |