Completed
Push — master ( 9a5b65...bc6c02 )
by Aimeos
05:06
created
lib/custom/tests/MW/Filesystem/FlyNoneTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -7,17 +7,17 @@
 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
-		$object = new FlyNone( [] );
19
-		$this->assertInstanceof( \Aimeos\MW\Filesystem\Iface::class, $object );
18
+		$object = new FlyNone([]);
19
+		$this->assertInstanceof(\Aimeos\MW\Filesystem\Iface::class, $object);
20 20
 
21
-		$object->has( 'test' );
21
+		$object->has('test');
22 22
 	}
23 23
 }
Please login to merge, or discard this patch.
lib/custom/tests/MW/Filesystem/FlyLocalTest.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -7,27 +7,27 @@
 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
-		$object = new FlyLocal( array( 'basedir' => dirname( dirname( __DIR__ ) ) ) );
19
-		$this->assertInstanceof( \Aimeos\MW\Filesystem\Iface::class, $object );
18
+		$object = new FlyLocal(array('basedir' => dirname(dirname(__DIR__))));
19
+		$this->assertInstanceof(\Aimeos\MW\Filesystem\Iface::class, $object);
20 20
 
21
-		$object->has( 'test' );
21
+		$object->has('test');
22 22
 	}
23 23
 
24 24
 
25 25
 	public function testGetProviderNoBasedir()
26 26
 	{
27
-		$object = new FlyLocal( [] );
28
-		$this->assertInstanceof( \Aimeos\MW\Filesystem\Iface::class, $object );
27
+		$object = new FlyLocal([]);
28
+		$this->assertInstanceof(\Aimeos\MW\Filesystem\Iface::class, $object);
29 29
 
30
-		$this->setExpectedException( 'Aimeos\MW\Filesystem\Exception' );
31
-		$object->has( 'test' );
30
+		$this->setExpectedException('Aimeos\MW\Filesystem\Exception');
31
+		$object->has('test');
32 32
 	}
33 33
 }
Please login to merge, or discard this patch.
lib/custom/tests/MW/Filesystem/FlyAzureTest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -7,21 +7,21 @@
 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\Azure\AzureAdapter' ) ) {
19
-			$this->markTestSkipped( 'Install Flysystem Azure adapter' );
18
+		if (!class_exists('\League\Flysystem\Azure\AzureAdapter')) {
19
+			$this->markTestSkipped('Install Flysystem Azure adapter');
20 20
 		}
21 21
 
22
-		$object = new FlyAzure( [] );
23
-		$this->assertInstanceof( \Aimeos\MW\Filesystem\Iface::class, $object );
22
+		$object = new FlyAzure([]);
23
+		$this->assertInstanceof(\Aimeos\MW\Filesystem\Iface::class, $object);
24 24
 
25
-		$object->has( 'test' );
25
+		$object->has('test');
26 26
 	}
27 27
 }
Please login to merge, or discard this patch.
lib/custom/tests/MW/Filesystem/FlyRackspaceTest.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
-		$object = new FlyRackspace( [] );
19
-		$this->assertInstanceof( \Aimeos\MW\Filesystem\Iface::class, $object );
18
+		$object = new FlyRackspace([]);
19
+		$this->assertInstanceof(\Aimeos\MW\Filesystem\Iface::class, $object);
20 20
 
21
-		$this->setExpectedException( \Aimeos\MW\Filesystem\Exception::class );
22
-		$object->has( 'test' );
21
+		$this->setExpectedException(\Aimeos\MW\Filesystem\Exception::class);
22
+		$object->has('test');
23 23
 	}
24 24
 
25 25
 
26 26
 	public function testGetProviderContainer()
27 27
 	{
28
-		if( !class_exists( '\League\Flysystem\Rackspace\RackspaceAdapter' ) ) {
29
-			$this->markTestSkipped( 'Install Flysystem Rackspace adapter' );
28
+		if (!class_exists('\League\Flysystem\Rackspace\RackspaceAdapter')) {
29
+			$this->markTestSkipped('Install Flysystem Rackspace adapter');
30 30
 		}
31 31
 
32
-		$object = new FlyRackspace( array( 'container' => 'test' ) );
33
-		$this->assertInstanceof( \Aimeos\MW\Filesystem\Iface::class, $object );
32
+		$object = new FlyRackspace(array('container' => 'test'));
33
+		$this->assertInstanceof(\Aimeos\MW\Filesystem\Iface::class, $object);
34 34
 
35
-		$this->setExpectedException( \OpenCloud\Common\Exceptions\CredentialError::class );
36
-		$object->has( 'test' );
35
+		$this->setExpectedException(\OpenCloud\Common\Exceptions\CredentialError::class);
36
+		$object->has('test');
37 37
 	}
38 38
 }
Please login to merge, or discard this patch.
lib/custom/tests/MW/Filesystem/FlyGridfsTest.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -7,39 +7,39 @@
 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
-		$object = new FlyGridfs( [] );
19
-		$this->assertInstanceof( \Aimeos\MW\Filesystem\Iface::class, $object );
18
+		$object = new FlyGridfs([]);
19
+		$this->assertInstanceof(\Aimeos\MW\Filesystem\Iface::class, $object);
20 20
 
21
-		$this->setExpectedException( 'Aimeos\MW\Filesystem\Exception' );
22
-		$object->has( 'test' );
21
+		$this->setExpectedException('Aimeos\MW\Filesystem\Exception');
22
+		$object->has('test');
23 23
 	}
24 24
 
25 25
 
26 26
 	public function testGetProviderToken()
27 27
 	{
28
-		if( !class_exists( '\League\Flysystem\GridFS\GridFSAdapter' ) ) {
29
-			$this->markTestSkipped( 'Install Flysystem GridFS adapter' );
28
+		if (!class_exists('\League\Flysystem\GridFS\GridFSAdapter')) {
29
+			$this->markTestSkipped('Install Flysystem GridFS adapter');
30 30
 		}
31 31
 
32
-		if( !class_exists( '\MongoClient' ) ) {
33
-			$this->markTestSkipped( 'Install Mongo client extension' );
32
+		if (!class_exists('\MongoClient')) {
33
+			$this->markTestSkipped('Install Mongo client extension');
34 34
 		}
35 35
 
36 36
 		$config = array(
37 37
 			'dbname' => 'test',
38 38
 		);
39
-		$object = new FlyGridfs( $config );
40
-		$this->assertInstanceof( \Aimeos\MW\Filesystem\Iface::class, $object );
39
+		$object = new FlyGridfs($config);
40
+		$this->assertInstanceof(\Aimeos\MW\Filesystem\Iface::class, $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
 }
Please login to merge, or discard this patch.