Completed
Push — master ( b61813...472f62 )
by Aimeos
14:38
created
lib/custom/tests/MW/View/Helper/Request/Symfony2Test.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -15,42 +15,42 @@
 block discarded – undo
15 15
 
16 16
 	protected function setUp()
17 17
 	{
18
-		if( !class_exists( '\Symfony\Component\HttpFoundation\Request' ) ) {
19
-			$this->markTestSkipped( '\Symfony\Component\HttpFoundation\Request is not available' );
18
+		if (!class_exists('\Symfony\Component\HttpFoundation\Request')) {
19
+			$this->markTestSkipped('\Symfony\Component\HttpFoundation\Request is not available');
20 20
 		}
21 21
 
22
-		if( !class_exists( '\Zend\Diactoros\Response' ) ) {
23
-			$this->markTestSkipped( '\Zend\Diactoros\Response is not available' );
22
+		if (!class_exists('\Zend\Diactoros\Response')) {
23
+			$this->markTestSkipped('\Zend\Diactoros\Response is not available');
24 24
 		}
25 25
 
26 26
 		$view = new \Aimeos\MW\View\Standard();
27
-		$files = array( 'test' => array( 'file' => array(
27
+		$files = array('test' => array('file' => array(
28 28
 			'name' => 'test.txt',
29 29
 			'type' => 'text/plain',
30
-			'tmp_name' => tempnam( sys_get_temp_dir(), 'ai-symfony_' ),
30
+			'tmp_name' => tempnam(sys_get_temp_dir(), 'ai-symfony_'),
31 31
 			'error' => UPLOAD_ERR_OK,
32 32
 			'size' => 123
33
-		) ) );
34
-		$param = array( 'HTTP_HOST' => 'localhost', 'REMOTE_ADDR' => '127.0.0.1' );
35
-		$request = new \Symfony\Component\HttpFoundation\Request( array(), array(), array(), array(), $files, $param, 'Content' );
36
-		$this->object = new \Aimeos\MW\View\Helper\Request\Symfony2( $view, $request );
33
+		)));
34
+		$param = array('HTTP_HOST' => 'localhost', 'REMOTE_ADDR' => '127.0.0.1');
35
+		$request = new \Symfony\Component\HttpFoundation\Request(array(), array(), array(), array(), $files, $param, 'Content');
36
+		$this->object = new \Aimeos\MW\View\Helper\Request\Symfony2($view, $request);
37 37
 	}
38 38
 
39 39
 
40 40
 	public function testTransform()
41 41
 	{
42
-		$this->assertInstanceOf( '\Aimeos\MW\View\Helper\Request\Symfony2', $this->object->transform() );
42
+		$this->assertInstanceOf('\Aimeos\MW\View\Helper\Request\Symfony2', $this->object->transform());
43 43
 	}
44 44
 
45 45
 
46 46
 	public function testGetClientAddress()
47 47
 	{
48
-		$this->assertEquals( '127.0.0.1', $this->object->getClientAddress() );
48
+		$this->assertEquals('127.0.0.1', $this->object->getClientAddress());
49 49
 	}
50 50
 
51 51
 
52 52
 	public function testGetTarget()
53 53
 	{
54
-		$this->assertEquals( null, $this->object->getTarget() );
54
+		$this->assertEquals(null, $this->object->getTarget());
55 55
 	}
56 56
 }
Please login to merge, or discard this patch.