Completed
Push — master ( 3fbd4c...6b11f1 )
by Aimeos
02:25
created
lib/custom/tests/MW/View/Helper/Request/Symfony2Test.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -15,35 +15,35 @@
 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
-		$param = array( 'HTTP_HOST' => 'localhost', 'REMOTE_ADDR' => '127.0.0.1' );
28
-		$request = new \Symfony\Component\HttpFoundation\Request( array(), array(), array(), array(), array(), $param, 'Content' );
29
-		$this->object = new \Aimeos\MW\View\Helper\Request\Symfony2( $view, $request );
27
+		$param = array('HTTP_HOST' => 'localhost', 'REMOTE_ADDR' => '127.0.0.1');
28
+		$request = new \Symfony\Component\HttpFoundation\Request(array(), array(), array(), array(), array(), $param, 'Content');
29
+		$this->object = new \Aimeos\MW\View\Helper\Request\Symfony2($view, $request);
30 30
 	}
31 31
 
32 32
 
33 33
 	public function testTransform()
34 34
 	{
35
-		$this->assertInstanceOf( '\Aimeos\MW\View\Helper\Request\Symfony2', $this->object->transform() );
35
+		$this->assertInstanceOf('\Aimeos\MW\View\Helper\Request\Symfony2', $this->object->transform());
36 36
 	}
37 37
 
38 38
 
39 39
 	public function testGetClientAddress()
40 40
 	{
41
-		$this->assertEquals( '127.0.0.1', $this->object->getClientAddress() );
41
+		$this->assertEquals('127.0.0.1', $this->object->getClientAddress());
42 42
 	}
43 43
 
44 44
 
45 45
 	public function testGetTarget()
46 46
 	{
47
-		$this->assertEquals( null, $this->object->getTarget() );
47
+		$this->assertEquals(null, $this->object->getTarget());
48 48
 	}
49 49
 }
Please login to merge, or discard this patch.