Completed
Branch master (a84bde)
by Aimeos
03:12
created
lib/custom/tests/MW/Filesystem/FlyFtpTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,9 +7,9 @@
 block discarded – undo
7 7
 {
8 8
 	public function testGetProvider()
9 9
 	{
10
-		$object = new FlyFtp( array( 'host' => 'ftp.kernel.org' ) );
11
-		$this->assertInstanceof( '\Aimeos\MW\Filesystem\Iface', $object );
10
+		$object = new FlyFtp(array('host' => 'ftp.kernel.org'));
11
+		$this->assertInstanceof('\Aimeos\MW\Filesystem\Iface', $object);
12 12
 
13
-		$object->has( 'test' );
13
+		$object->has('test');
14 14
 	}
15 15
 }
Please login to merge, or discard this patch.
lib/custom/tests/MW/Filesystem/FlyGridfsTest.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -7,31 +7,31 @@
 block discarded – undo
7 7
 {
8 8
 	public function testGetProvider()
9 9
 	{
10
-		$object = new FlyGridfs( array() );
11
-		$this->assertInstanceof( '\Aimeos\MW\Filesystem\Iface', $object );
10
+		$object = new FlyGridfs(array());
11
+		$this->assertInstanceof('\Aimeos\MW\Filesystem\Iface', $object);
12 12
 
13
-		$this->setExpectedException( 'Aimeos\MW\Filesystem\Exception' );
14
-		$object->has( 'test' );
13
+		$this->setExpectedException('Aimeos\MW\Filesystem\Exception');
14
+		$object->has('test');
15 15
 	}
16 16
 
17 17
 
18 18
 	public function testGetProviderToken()
19 19
 	{
20
-		if( !class_exists( '\League\Flysystem\GridFS\GridFSAdapter' ) ) {
21
-			$this->markTestSkipped( 'Install Flysystem GridFS adapter' );
20
+		if (!class_exists('\League\Flysystem\GridFS\GridFSAdapter')) {
21
+			$this->markTestSkipped('Install Flysystem GridFS adapter');
22 22
 		}
23 23
 
24
-		if( !class_exists( '\MongoClient' ) ) {
25
-			$this->markTestSkipped( 'Install Mongo client extension' );
24
+		if (!class_exists('\MongoClient')) {
25
+			$this->markTestSkipped('Install Mongo client extension');
26 26
 		}
27 27
 
28 28
 		$config = array(
29 29
 			'dbname' => 'test',
30 30
 		);
31
-		$object = new FlyGridfs( $config );
32
-		$this->assertInstanceof( '\Aimeos\MW\Filesystem\Iface', $object );
31
+		$object = new FlyGridfs($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
 }
Please login to merge, or discard this patch.
lib/custom/tests/MW/Filesystem/FlyLocalTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,9 +7,9 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
lib/custom/tests/MW/Filesystem/FlyMemoryTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -7,13 +7,13 @@
 block discarded – undo
7 7
 {
8 8
 	public function testGetProvider()
9 9
 	{
10
-		if( !class_exists( '\League\Flysystem\Memory\MemoryAdapter' ) ) {
11
-			$this->markTestSkipped( 'Install Flysystem memory adapter' );
10
+		if (!class_exists('\League\Flysystem\Memory\MemoryAdapter')) {
11
+			$this->markTestSkipped('Install Flysystem memory adapter');
12 12
 		}
13 13
 
14
-		$object = new FlyMemory( array() );
15
-		$this->assertInstanceof( '\Aimeos\MW\Filesystem\Iface', $object );
14
+		$object = new FlyMemory(array());
15
+		$this->assertInstanceof('\Aimeos\MW\Filesystem\Iface', $object);
16 16
 
17
-		$object->has( 'test' );
17
+		$object->has('test');
18 18
 	}
19 19
 }
Please login to merge, or discard this patch.
lib/custom/tests/MW/Filesystem/FlyNoneTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,9 +7,9 @@
 block discarded – undo
7 7
 {
8 8
 	public function testGetProvider()
9 9
 	{
10
-		$object = new FlyNone( array() );
11
-		$this->assertInstanceof( '\Aimeos\MW\Filesystem\Iface', $object );
10
+		$object = new FlyNone(array());
11
+		$this->assertInstanceof('\Aimeos\MW\Filesystem\Iface', $object);
12 12
 
13
-		$object->has( 'test' );
13
+		$object->has('test');
14 14
 	}
15 15
 }
Please login to merge, or discard this patch.
lib/custom/tests/MW/Filesystem/FlyPhpcrTest.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -7,18 +7,18 @@  discard block
 block discarded – undo
7 7
 {
8 8
 	public function testGetProvider()
9 9
 	{
10
-		$object = new FlyPhpcr( array() );
11
-		$this->assertInstanceof( '\Aimeos\MW\Filesystem\Iface', $object );
10
+		$object = new FlyPhpcr(array());
11
+		$this->assertInstanceof('\Aimeos\MW\Filesystem\Iface', $object);
12 12
 
13
-		$this->setExpectedException( '\Aimeos\MW\Filesystem\Exception' );
14
-		$object->has( 'test' );
13
+		$this->setExpectedException('\Aimeos\MW\Filesystem\Exception');
14
+		$object->has('test');
15 15
 	}
16 16
 
17 17
 
18 18
 	public function testGetProviderRoot()
19 19
 	{
20
-		if( !class_exists( '\League\Flysystem\Phpcr\PhpcrAdapter' ) ) {
21
-			$this->markTestSkipped( 'Install Flysystem PHPCR adapter' );
20
+		if (!class_exists('\League\Flysystem\Phpcr\PhpcrAdapter')) {
21
+			$this->markTestSkipped('Install Flysystem PHPCR adapter');
22 22
 		}
23 23
 
24 24
 		$config = array(
@@ -26,10 +26,10 @@  discard block
 block discarded – undo
26 26
 			'path' => '/tmp/fly_phpcr.db',
27 27
 			'root' => '/',
28 28
 		);
29
-		$object = new FlyPhpcr( $config );
30
-		$this->assertInstanceof( '\Aimeos\MW\Filesystem\Iface', $object );
29
+		$object = new FlyPhpcr($config);
30
+		$this->assertInstanceof('\Aimeos\MW\Filesystem\Iface', $object);
31 31
 
32
-		$this->setExpectedException( '\PHPCR\RepositoryException' );
33
-		$object->has( 'test' );
32
+		$this->setExpectedException('\PHPCR\RepositoryException');
33
+		$object->has('test');
34 34
 	}
35 35
 }
Please login to merge, or discard this patch.
lib/custom/tests/MW/Filesystem/FlyRackspaceTest.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -7,24 +7,24 @@
 block discarded – undo
7 7
 {
8 8
 	public function testGetProvider()
9 9
 	{
10
-		$object = new FlyRackspace( array() );
11
-		$this->assertInstanceof( '\Aimeos\MW\Filesystem\Iface', $object );
10
+		$object = new FlyRackspace(array());
11
+		$this->assertInstanceof('\Aimeos\MW\Filesystem\Iface', $object);
12 12
 
13
-		$this->setExpectedException( '\Aimeos\MW\Filesystem\Exception' );
14
-		$object->has( 'test' );
13
+		$this->setExpectedException('\Aimeos\MW\Filesystem\Exception');
14
+		$object->has('test');
15 15
 	}
16 16
 
17 17
 
18 18
 	public function testGetProviderContainer()
19 19
 	{
20
-		if( !class_exists( '\League\Flysystem\Rackspace\RackspaceAdapter' ) ) {
21
-			$this->markTestSkipped( 'Install Flysystem Rackspace adapter' );
20
+		if (!class_exists('\League\Flysystem\Rackspace\RackspaceAdapter')) {
21
+			$this->markTestSkipped('Install Flysystem Rackspace adapter');
22 22
 		}
23 23
 
24
-		$object = new FlyRackspace( array( 'container' => 'test' ) );
25
-		$this->assertInstanceof( '\Aimeos\MW\Filesystem\Iface', $object );
24
+		$object = new FlyRackspace(array('container' => 'test'));
25
+		$this->assertInstanceof('\Aimeos\MW\Filesystem\Iface', $object);
26 26
 
27
-		$this->setExpectedException( '\OpenCloud\Common\Exceptions\CredentialError' );
28
-		$object->has( 'test' );
27
+		$this->setExpectedException('\OpenCloud\Common\Exceptions\CredentialError');
28
+		$object->has('test');
29 29
 	}
30 30
 }
Please login to merge, or discard this patch.
lib/custom/tests/MW/Filesystem/FlyReplicateTest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -7,18 +7,18 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
lib/custom/tests/MW/Filesystem/FlySftpTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -7,13 +7,13 @@
 block discarded – undo
7 7
 {
8 8
 	public function testGetProvider()
9 9
 	{
10
-		if( !class_exists( '\League\Flysystem\Sftp\SftpAdapter' ) ) {
11
-			$this->markTestSkipped( 'Install Flysystem SFTP adapter' );
10
+		if (!class_exists('\League\Flysystem\Sftp\SftpAdapter')) {
11
+			$this->markTestSkipped('Install Flysystem SFTP adapter');
12 12
 		}
13 13
 
14
-		$object = new FlySftp( array( 'host' => 'test.rebex.net', 'username' => 'demo', 'password' => 'password' ) );
15
-		$this->assertInstanceof( '\Aimeos\MW\Filesystem\Iface', $object );
14
+		$object = new FlySftp(array('host' => 'test.rebex.net', 'username' => 'demo', 'password' => 'password'));
15
+		$this->assertInstanceof('\Aimeos\MW\Filesystem\Iface', $object);
16 16
 
17
-		$object->has( 'test' );
17
+		$object->has('test');
18 18
 	}
19 19
 }
Please login to merge, or discard this patch.