Completed
Push — master ( 52c730...9eba1c )
by Aimeos
08:52
created
lib/mwlib/tests/MW/Container/ZipTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 
23 23
 	public function testNewFile()
24 24
 	{
25
-		$filename = 'tmp' . DIRECTORY_SEPARATOR . 'tempfile';
25
+		$filename = 'tmp'.DIRECTORY_SEPARATOR.'tempfile';
26 26
 
27 27
 		$zip = new \Aimeos\MW\Container\Zip( $filename, 'CSV' );
28 28
 		$zip->add( $zip->create( 'test' ) );
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 
40 40
 	public function testAdd()
41 41
 	{
42
-		$filename = 'tmp' . DIRECTORY_SEPARATOR . 'tempfile';
42
+		$filename = 'tmp'.DIRECTORY_SEPARATOR.'tempfile';
43 43
 
44 44
 		$zip = new \Aimeos\MW\Container\Zip( $filename, 'CSV' );
45 45
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 		$actual = $za->getFromName( $content->getName() );
55 55
 		$za->close();
56 56
 
57
-		$expected = '"test","file","data"' . PHP_EOL;
57
+		$expected = '"test","file","data"'.PHP_EOL;
58 58
 
59 59
 		unlink( $zip->getName() );
60 60
 
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 
65 65
 	public function testGet()
66 66
 	{
67
-		$zip = new \Aimeos\MW\Container\Zip( __DIR__ . DIRECTORY_SEPARATOR . 'testfile', 'CSV' );
67
+		$zip = new \Aimeos\MW\Container\Zip( __DIR__.DIRECTORY_SEPARATOR.'testfile', 'CSV' );
68 68
 
69 69
 		$this->assertInstanceOf( '\\Aimeos\\MW\\Container\\Content\\Iface', $zip->get( 'tempfile.csv' ) );
70 70
 	}
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 
73 73
 	public function testIterator()
74 74
 	{
75
-		$zip = new \Aimeos\MW\Container\Zip( __DIR__ . DIRECTORY_SEPARATOR . 'testfile', 'CSV' );
75
+		$zip = new \Aimeos\MW\Container\Zip( __DIR__.DIRECTORY_SEPARATOR.'testfile', 'CSV' );
76 76
 
77 77
 		$expected = array(
78 78
 			'tempfile.csv' => 2,
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 				$rows[] = $row;
94 94
 			}
95 95
 
96
-			$actual[ $entry->getName() ] = count( $rows );
96
+			$actual[$entry->getName()] = count( $rows );
97 97
 		}
98 98
 
99 99
 		$this->assertEquals( $expected, $actual );
Please login to merge, or discard this patch.
lib/mwlib/tests/MW/Container/Content/CSVTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 
23 23
 	public function testNewFile()
24 24
 	{
25
-		$csv = new \Aimeos\MW\Container\Content\CSV( __DIR__ . DIRECTORY_SEPARATOR . 'tempfile', 'temp' );
25
+		$csv = new \Aimeos\MW\Container\Content\CSV( __DIR__.DIRECTORY_SEPARATOR.'tempfile', 'temp' );
26 26
 
27 27
 		$check = file_exists( $csv->getResource() );
28 28
 		unlink( $csv->getResource() );
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
 	public function testExistingFile()
36 36
 	{
37
-		$csv = new \Aimeos\MW\Container\Content\CSV( __DIR__ . DIRECTORY_SEPARATOR . 'testfile.csv', 'test' );
37
+		$csv = new \Aimeos\MW\Container\Content\CSV( __DIR__.DIRECTORY_SEPARATOR.'testfile.csv', 'test' );
38 38
 
39 39
 		$this->assertEquals( true, file_exists( $csv->getResource() ) );
40 40
 	}
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 			'csv-lineend-subst' => " ",
51 51
 		);
52 52
 
53
-		$path = __DIR__ . DIRECTORY_SEPARATOR . 'tempfile';
53
+		$path = __DIR__.DIRECTORY_SEPARATOR.'tempfile';
54 54
 
55 55
 		$csv = new \Aimeos\MW\Container\Content\CSV( $path, 'temp', $options );
56 56
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 
79 79
 	public function testIterator()
80 80
 	{
81
-		$filename = __DIR__ . DIRECTORY_SEPARATOR . 'testfile.csv';
81
+		$filename = __DIR__.DIRECTORY_SEPARATOR.'testfile.csv';
82 82
 		$csv = new \Aimeos\MW\Container\Content\CSV( $filename, 'test' );
83 83
 
84 84
 		$expected = array(
Please login to merge, or discard this patch.
lib/mwlib/tests/MW/Container/Content/BinaryTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 
20 20
 	public function testNewFile()
21 21
 	{
22
-		$filename = 'tmp' . DIRECTORY_SEPARATOR . 'tempfile';
22
+		$filename = 'tmp'.DIRECTORY_SEPARATOR.'tempfile';
23 23
 		$file = new \Aimeos\MW\Container\Content\Binary( $filename, 'temp' );
24 24
 
25 25
 		$check = file_exists( $file->getResource() );
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
 	public function testExistingFile()
34 34
 	{
35
-		$filename = __DIR__ . DIRECTORY_SEPARATOR . 'testfile';
35
+		$filename = __DIR__.DIRECTORY_SEPARATOR.'testfile';
36 36
 		$file = new \Aimeos\MW\Container\Content\Binary( $filename, 'testfile' );
37 37
 
38 38
 		$this->assertEquals( true, file_exists( $file->getResource() ) );
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 			'bin-maxsize' => 0xFF,
46 46
 		);
47 47
 
48
-		$path = 'tmp' . DIRECTORY_SEPARATOR . 'tempfile';
48
+		$path = 'tmp'.DIRECTORY_SEPARATOR.'tempfile';
49 49
 
50 50
 		$file = new \Aimeos\MW\Container\Content\Binary( $path, 'temp', $options );
51 51
 		$file->add( 'test text' );
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 
64 64
 	public function testIterator()
65 65
 	{
66
-		$path = __DIR__ . DIRECTORY_SEPARATOR . 'testfile';
66
+		$path = __DIR__.DIRECTORY_SEPARATOR.'testfile';
67 67
 		$file = new \Aimeos\MW\Container\Content\Binary( $path, 'test' );
68 68
 
69 69
 		$expected = array( 'test data' );
Please login to merge, or discard this patch.
lib/mwlib/tests/MW/Container/Content/TextTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 
20 20
 	public function testNewFile()
21 21
 	{
22
-		$filename = 'tmp' . DIRECTORY_SEPARATOR . 'tempfile';
22
+		$filename = 'tmp'.DIRECTORY_SEPARATOR.'tempfile';
23 23
 		$file = new \Aimeos\MW\Container\Content\Text( $filename, 'temp' );
24 24
 
25 25
 		$check = file_exists( $file->getResource() );
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
 	public function testExistingFile()
34 34
 	{
35
-		$filename = __DIR__ . DIRECTORY_SEPARATOR . 'testfile';
35
+		$filename = __DIR__.DIRECTORY_SEPARATOR.'testfile';
36 36
 		$file = new \Aimeos\MW\Container\Content\Text( $filename, 'testfile' );
37 37
 
38 38
 		$this->assertEquals( true, file_exists( $file->getResource() ) );
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 			'text-lineend' => "\r\n",
46 46
 		);
47 47
 
48
-		$path = 'tmp' . DIRECTORY_SEPARATOR . 'tempfile';
48
+		$path = 'tmp'.DIRECTORY_SEPARATOR.'tempfile';
49 49
 
50 50
 		$file = new \Aimeos\MW\Container\Content\Text( $path, 'temp', $options );
51 51
 		$file->add( 'test text' );
@@ -57,13 +57,13 @@  discard block
 block discarded – undo
57 57
 		unlink( $file->getResource() );
58 58
 
59 59
 		$this->assertEquals( $expected, $actual );
60
-		$this->assertEquals( $path . '.txt', $file->getResource() );
60
+		$this->assertEquals( $path.'.txt', $file->getResource() );
61 61
 	}
62 62
 
63 63
 
64 64
 	public function testIterator()
65 65
 	{
66
-		$path = __DIR__ . DIRECTORY_SEPARATOR . 'testfile.txt';
66
+		$path = __DIR__.DIRECTORY_SEPARATOR.'testfile.txt';
67 67
 		$file = new \Aimeos\MW\Container\Content\Text( $path, 'test' );
68 68
 
69 69
 		$expected = array( 'test text' );
Please login to merge, or discard this patch.
lib/mwlib/tests/MW/Container/FactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 
21 21
 	public function testFactoryFail()
22 22
 	{
23
-		$this->setExpectedException('\\Aimeos\\MW\\Container\\Exception');
23
+		$this->setExpectedException( '\\Aimeos\\MW\\Container\\Exception' );
24 24
 		\Aimeos\MW\Container\Factory::getContainer( 'tempfile', 'notDefined', 'invalid' );
25 25
 	}
26 26
 }
Please login to merge, or discard this patch.
lib/mwlib/tests/MW/Template/SQLTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
 
36 36
 	public function testToString()
37 37
 	{
38
-		$template = $this->object->get('FROM');
38
+		$template = $this->object->get( 'FROM' );
39 39
 		$this->assertInstanceOf( '\\Aimeos\\MW\\Template\\Iface', $template );
40 40
 
41 41
 		$this->assertEquals( 'table', $template->str() );
Please login to merge, or discard this patch.
lib/mwlib/tests/MW/Template/T3Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
 
43 43
 	public function testToString()
44 44
 	{
45
-		$template = $this->object->get('NAME');
45
+		$template = $this->object->get( 'NAME' );
46 46
 		$this->assertInstanceOf( '\\Aimeos\\MW\\Template\\Iface', $template );
47 47
 
48 48
 		$this->assertEquals( 'Name', $template->str() );
Please login to merge, or discard this patch.
lib/mwlib/tests/MW/Template/BaseTest.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -55,28 +55,28 @@  discard block
 block discarded – undo
55 55
 
56 56
 	public function testDisable()
57 57
 	{
58
-		$this->assertEquals('
58
+		$this->assertEquals( '
59 59
 <div> text</div>
60 60
 ',
61
-		$this->object->get('ITEM')->disable( 'NUM' )->substitute( array( 'TEXT' => 'text' ) )->str() );
61
+		$this->object->get( 'ITEM' )->disable( 'NUM' )->substitute( array( 'TEXT' => 'text' ) )->str() );
62 62
 	}
63 63
 
64 64
 
65 65
 	public function testEnable()
66 66
 	{
67
-		$this->assertEquals('
67
+		$this->assertEquals( '
68 68
 <div>1 text</div>
69 69
 ',
70
-		$this->object->get('ITEM')->enable( 'NUM' )->substitute( array( 'TEXT' => 'text' ) )->str() );
70
+		$this->object->get( 'ITEM' )->enable( 'NUM' )->substitute( array( 'TEXT' => 'text' ) )->str() );
71 71
 	}
72 72
 
73 73
 
74 74
 	public function testGet()
75 75
 	{
76
-		$template = $this->object->get('TEMPLATE');
76
+		$template = $this->object->get( 'TEMPLATE' );
77 77
 		$this->assertInstanceOf( '\\Aimeos\\MW\\Template\\Iface', $template );
78 78
 
79
-		$this->assertEquals('
79
+		$this->assertEquals( '
80 80
 test template
81 81
 <!--###LIST-->
82 82
 <!--###ITEM-->
@@ -89,8 +89,8 @@  discard block
 block discarded – undo
89 89
 
90 90
 	public function testGetBeginIsNotDefined()
91 91
 	{
92
-		$this->setExpectedException('\\Aimeos\\MW\\Template\\Exception');
93
-		$this->object->get('NOTDEFINED');
92
+		$this->setExpectedException( '\\Aimeos\\MW\\Template\\Exception' );
93
+		$this->object->get( 'NOTDEFINED' );
94 94
 	}
95 95
 
96 96
 	public function testGetEndIsNotDefined()
@@ -113,24 +113,24 @@  discard block
 block discarded – undo
113 113
 
114 114
 		$object = new \Aimeos\MW\Template\Base( $template, '<!--###$-->', '<!--$###-->' );
115 115
 
116
-		$this->setExpectedException('\\Aimeos\\MW\\Template\\Exception');
117
-		$object->get('ITEM');
116
+		$this->setExpectedException( '\\Aimeos\\MW\\Template\\Exception' );
117
+		$object->get( 'ITEM' );
118 118
 	}
119 119
 
120 120
 
121 121
 
122 122
 	public function testGetMarkerNames()
123 123
 	{
124
-		$this->assertEquals( array('TEMPLATE', 'LIST', 'ITEM', 'NUM', 'TEXT'), $this->object->getMarkerNames() );
124
+		$this->assertEquals( array( 'TEMPLATE', 'LIST', 'ITEM', 'NUM', 'TEXT' ), $this->object->getMarkerNames() );
125 125
 	}
126 126
 
127 127
 
128 128
 	public function testReplace()
129 129
 	{
130
-		$this->assertEquals('
130
+		$this->assertEquals( '
131 131
 <div><!--###NUM-->1<!--NUM###--> <!--###TEXT-->example test<!--TEXT###--></div>
132 132
 ',
133
-		$this->object->get('ITEM')->replace( 'text', 'test' )->str( false ) );
133
+		$this->object->get( 'ITEM' )->replace( 'text', 'test' )->str( false ) );
134 134
 	}
135 135
 
136 136
 
@@ -141,10 +141,10 @@  discard block
 block discarded – undo
141 141
 			'TEXT' => 'test'
142 142
 		);
143 143
 
144
-		$this->assertEquals('
144
+		$this->assertEquals( '
145 145
 <div>123 test</div>
146 146
 ',
147
-			$this->object->get('ITEM')->substitute( $marker )->str()
147
+			$this->object->get( 'ITEM' )->substitute( $marker )->str()
148 148
 		);
149 149
 	}
150 150
 
@@ -168,16 +168,16 @@  discard block
 block discarded – undo
168 168
 
169 169
 		$object = new \Aimeos\MW\Template\Base( $template, '<!--###$-->', '<!--$###-->' );
170 170
 
171
-		$this->setExpectedException('\\Aimeos\\MW\\Template\\Exception');
172
-		$object->substitute( array('ITEM'=>'Title' ) );
171
+		$this->setExpectedException( '\\Aimeos\\MW\\Template\\Exception' );
172
+		$object->substitute( array( 'ITEM'=>'Title' ) );
173 173
 	}
174 174
 
175 175
 	public function testStr()
176 176
 	{
177
-		$template = $this->object->get('TEMPLATE');
177
+		$template = $this->object->get( 'TEMPLATE' );
178 178
 		$this->assertInstanceOf( '\\Aimeos\\MW\\Template\\Iface', $template );
179 179
 
180
-		$this->assertEquals('
180
+		$this->assertEquals( '
181 181
 test template
182 182
 
183 183
 ',
Please login to merge, or discard this patch.
lib/mwlib/tests/MW/Config/testowrite/config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 return array(
4
-	'manager' => array (
4
+	'manager' => array(
5 5
 		'default' => array(
6 6
 			'select' => 'select11',
7 7
 		),
Please login to merge, or discard this patch.