Passed
Branch master (ba77f4)
by Aimeos
03:57
created
lib/custom/tests/bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 error_reporting( -1 );
13 13
 ini_set( 'display_errors', '1' );
14 14
 
15
-date_default_timezone_set('UTC');
15
+date_default_timezone_set( 'UTC' );
16 16
 
17 17
 
18 18
 /*
Please login to merge, or discard this patch.
lib/custom/tests/MW/Mail/Typo3Test.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,9 @@
 block discarded – undo
22 22
 	protected function setUp()
23 23
 	{
24 24
 		$mock = $this->getMockBuilder( 'TYPO3\\CMS\\Core\\Mail\\MailMessage' )->getMock();
25
-		$this->object = new \Aimeos\MW\Mail\Typo3( function() use ( $mock ) { return $mock; } );
25
+		$this->object = new \Aimeos\MW\Mail\Typo3( function() use ( $mock )
26
+		{
27
+return $mock; } );
26 28
 		$this->mock = $mock;
27 29
 	}
28 30
 
Please login to merge, or discard this patch.
lib/custom/tests/MW/View/Helper/Url/T3CliTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 	public function testTransformAbsolute()
34 34
 	{
35 35
 		$mock = $this->getMockBuilder( 'TYPO3\\CMS\\Extbase\\Mvc\\Web\\Routing\\UriBuilder' )
36
-			->setMethods( array( 'setCreateAbsoluteUri') )->getMock();
36
+			->setMethods( array( 'setCreateAbsoluteUri' ) )->getMock();
37 37
 
38 38
 		$mock->expects( $this->once() )->method( 'setCreateAbsoluteUri' )
39 39
 			->with( $this->equalTo( true ) )->will( $this->returnValue( $mock ) );
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 	public function testTransformChash()
48 48
 	{
49 49
 		$mock = $this->getMockBuilder( 'TYPO3\\CMS\\Extbase\\Mvc\\Web\\Routing\\UriBuilder' )
50
-			->setMethods( array( 'setUseCacheHash') )->getMock();
50
+			->setMethods( array( 'setUseCacheHash' ) )->getMock();
51 51
 
52 52
 		$mock->expects( $this->once() )->method( 'setUseCacheHash' )
53 53
 			->with( $this->equalTo( false ) )->will( $this->returnValue( $mock ) );
Please login to merge, or discard this patch.
lib/custom/tests/MW/View/Helper/Url/Typo3Test.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 	public function testTransform()
34 34
 	{
35 35
 		$mock = $this->getMockBuilder( 'TYPO3\\CMS\\Extbase\\Mvc\\Web\\Routing\\UriBuilder' )
36
-			->setMethods( array( 'buildFrontendUri') )->getMock();
36
+			->setMethods( array( 'buildFrontendUri' ) )->getMock();
37 37
 
38 38
 		$mock->expects( $this->once() )->method( 'buildFrontendUri' );
39 39
 
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 	public function testTransformAbsolute()
48 48
 	{
49 49
 		$mock = $this->getMockBuilder( 'TYPO3\\CMS\\Extbase\\Mvc\\Web\\Routing\\UriBuilder' )
50
-			->setMethods( array( 'setCreateAbsoluteUri') )->getMock();
50
+			->setMethods( array( 'setCreateAbsoluteUri' ) )->getMock();
51 51
 
52 52
 		$mock->expects( $this->once() )->method( 'setCreateAbsoluteUri' )
53 53
 			->with( $this->equalTo( true ) )->will( $this->returnValue( $mock ) );
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 	public function testTransformNocache()
63 63
 	{
64 64
 		$mock = $this->getMockBuilder( 'TYPO3\\CMS\\Extbase\\Mvc\\Web\\Routing\\UriBuilder' )
65
-			->setMethods( array( 'setNoCache') )->getMock();
65
+			->setMethods( array( 'setNoCache' ) )->getMock();
66 66
 
67 67
 		$mock->expects( $this->once() )->method( 'setNoCache' )
68 68
 			->with( $this->equalTo( true ) )->will( $this->returnValue( $mock ) );
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 	public function testTransformChash()
78 78
 	{
79 79
 		$mock = $this->getMockBuilder( 'TYPO3\\CMS\\Extbase\\Mvc\\Web\\Routing\\UriBuilder' )
80
-			->setMethods( array( 'setUseCacheHash') )->getMock();
80
+			->setMethods( array( 'setUseCacheHash' ) )->getMock();
81 81
 
82 82
 		$mock->expects( $this->once() )->method( 'setUseCacheHash' )
83 83
 			->with( $this->equalTo( true ) )->will( $this->returnValue( $mock ) );
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 	public function testTransformType()
93 93
 	{
94 94
 		$mock = $this->getMockBuilder( 'TYPO3\\CMS\\Extbase\\Mvc\\Web\\Routing\\UriBuilder' )
95
-			->setMethods( array( 'setTargetPageType') )->getMock();
95
+			->setMethods( array( 'setTargetPageType' ) )->getMock();
96 96
 
97 97
 		$mock->expects( $this->once() )->method( 'setTargetPageType' )
98 98
 			->with( $this->equalTo( 123 ) )->will( $this->returnValue( $mock ) );
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 	public function testTransformFormat()
108 108
 	{
109 109
 		$mock = $this->getMockBuilder( 'TYPO3\\CMS\\Extbase\\Mvc\\Web\\Routing\\UriBuilder' )
110
-			->setMethods( array( 'setFormat') )->getMock();
110
+			->setMethods( array( 'setFormat' ) )->getMock();
111 111
 
112 112
 		$mock->expects( $this->once() )->method( 'setFormat' )
113 113
 			->with( $this->equalTo( 'xml' ) )->will( $this->returnValue( $mock ) );
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 	public function testTransformEID()
123 123
 	{
124 124
 		$mock = $this->getMockBuilder( 'TYPO3\\CMS\\Extbase\\Mvc\\Web\\Routing\\UriBuilder' )
125
-			->setMethods( array( 'setArguments') )->getMock();
125
+			->setMethods( array( 'setArguments' ) )->getMock();
126 126
 
127 127
 		$param = array( 'eID' => 123, 'ai' => array( 'controller' => null, 'action' => null ) );
128 128
 
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 	public function testTransformBackend()
140 140
 	{
141 141
 		$mock = $this->getMockBuilder( 'TYPO3\\CMS\\Extbase\\Mvc\\Web\\Routing\\UriBuilder' )
142
-		->setMethods( array( 'buildBackendUri') )->getMock();
142
+		->setMethods( array( 'buildBackendUri' ) )->getMock();
143 143
 
144 144
 		$mock->expects( $this->once() )->method( 'buildBackendUri' );
145 145
 
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 	public function testTransformParams()
154 154
 	{
155 155
 		$mock = $this->getMockBuilder( 'TYPO3\\CMS\\Extbase\\Mvc\\Web\\Routing\\UriBuilder' )
156
-			->setMethods( array( 'buildFrontendUri') )->getMock();
156
+			->setMethods( array( 'buildFrontendUri' ) )->getMock();
157 157
 
158 158
 		$mock->expects( $this->once() )->method( 'buildFrontendUri' );
159 159
 
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
 	public function testTransformUnchangedOriginalUriBuilder()
184 184
 	{
185 185
 		$mock = $this->getMockBuilder( 'TYPO3\\CMS\\Extbase\\Mvc\\Web\\Routing\\UriBuilder' )
186
-			->setMethods( array( 'reset') )->getMock();
186
+			->setMethods( array( 'reset' ) )->getMock();
187 187
 
188 188
 		$mock->expects( $this->once() )->method( 'reset' )->will( $this->returnValue( $mock ) );
189 189
 
Please login to merge, or discard this patch.
lib/custom/tests/MW/View/Engine/Typo3Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 			->will( $this->returnValue( 'test' ) );
52 52
 
53 53
 		$this->mock->expects( $this->once() )->method( 'get' )
54
-			->will( $this->returnValue( $view) );
54
+			->will( $this->returnValue( $view ) );
55 55
 
56 56
 		$result = $this->object->render( $v, 'filepath', array( 'key' => 'value' ) );
57 57
 		$this->assertEquals( 'test', $result );
Please login to merge, or discard this patch.
lib/custom/tests/MW/Session/Typo3Test.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -21,31 +21,31 @@
 block discarded – undo
21 21
 	protected function setUp()
22 22
 	{
23 23
 		$mock = new \TYPO3\CMS\Core\Authentication\AbstractUserAuthentication();
24
-		$this->object = new \Aimeos\MW\Session\Typo3($mock);
24
+		$this->object = new \Aimeos\MW\Session\Typo3( $mock );
25 25
 	}
26 26
 
27 27
 
28 28
 	protected function tearDown()
29 29
 	{
30
-		unset($this->object);
30
+		unset( $this->object );
31 31
 	}
32 32
 
33 33
 
34 34
 	public function testGet()
35 35
 	{
36
-		$this->assertEquals('', $this->object->get('test'));
36
+		$this->assertEquals( '', $this->object->get( 'test' ) );
37 37
 
38
-		$this->object->set('test', '123456789');
39
-		$this->assertEquals('123456789', $this->object->get('test'));
38
+		$this->object->set( 'test', '123456789' );
39
+		$this->assertEquals( '123456789', $this->object->get( 'test' ) );
40 40
 	}
41 41
 
42 42
 
43 43
 	public function testSet()
44 44
 	{
45
-		$this->object->set('test', '123');
45
+		$this->object->set( 'test', '123' );
46 46
 		$this->assertEquals( '123', $this->object->get( 'test' ) );
47 47
 
48
-		$this->object->set('test', '234');
48
+		$this->object->set( 'test', '234' );
49 49
 		$this->assertEquals( '234', $this->object->get( 'test' ) );
50 50
 	}
51 51
 }
Please login to merge, or discard this patch.
lib/custom/tests/MW/Common/Criteria/Plugin/T3DateTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 	 */
33 33
 	protected function tearDown()
34 34
 	{
35
-		unset($this->object);
35
+		unset( $this->object );
36 36
 	}
37 37
 
38 38
 
Please login to merge, or discard this patch.
lib/custom/tests/MW/Common/Criteria/Plugin/T3StatusTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 	 */
33 33
 	protected function tearDown()
34 34
 	{
35
-		unset($this->object);
35
+		unset( $this->object );
36 36
 	}
37 37
 
38 38
 
Please login to merge, or discard this patch.
lib/custom/tests/MW/Common/Criteria/Plugin/T3DatetimeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
 	 */
32 32
 	protected function tearDown()
33 33
 	{
34
-		unset($this->object);
34
+		unset( $this->object );
35 35
 	}
36 36
 
37 37
 
Please login to merge, or discard this patch.