Completed
Push — master ( 8cf01a...363df4 )
by Aimeos
04:45
created
lib/custom/tests/MW/View/Helper/Url/Symfony2Test.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -25,17 +25,17 @@  discard block
 block discarded – undo
25 25
 	 */
26 26
 	protected function setUp()
27 27
 	{
28
-		if( !class_exists( '\Symfony\Component\Routing\Router' ) ) {
29
-			$this->markTestSkipped( 'Symfony\Component\Routing\Router is not available' );
28
+		if (!class_exists('\Symfony\Component\Routing\Router')) {
29
+			$this->markTestSkipped('Symfony\Component\Routing\Router is not available');
30 30
 		}
31 31
 
32 32
 		$view = new \Aimeos\MW\View\Standard();
33 33
 
34
-		$loc = new \Symfony\Component\Config\FileLocator( array( __DIR__ . DIRECTORY_SEPARATOR . '_testfiles' ) );
35
-		$loader = new \Symfony\Component\Routing\Loader\PhpFileLoader( $loc );
36
-		$router = new \Symfony\Component\Routing\Router( $loader, 'routing.php' );
34
+		$loc = new \Symfony\Component\Config\FileLocator(array(__DIR__ . DIRECTORY_SEPARATOR . '_testfiles'));
35
+		$loader = new \Symfony\Component\Routing\Loader\PhpFileLoader($loc);
36
+		$router = new \Symfony\Component\Routing\Router($loader, 'routing.php');
37 37
 
38
-		$this->object = new \Aimeos\MW\View\Helper\Url\Symfony2( $view, $router, array( 'site' => 'unittest' ) );
38
+		$this->object = new \Aimeos\MW\View\Helper\Url\Symfony2($view, $router, array('site' => 'unittest'));
39 39
 	}
40 40
 
41 41
 
@@ -53,26 +53,26 @@  discard block
 block discarded – undo
53 53
 
54 54
 	public function testTransform()
55 55
 	{
56
-		$this->assertEquals( '/unittest/lists', $this->object->transform( 'catalog_list' ) );
56
+		$this->assertEquals('/unittest/lists', $this->object->transform('catalog_list'));
57 57
 	}
58 58
 
59 59
 
60 60
 	public function testTransformArrays()
61 61
 	{
62
-		$this->assertEquals( '/unittest/lists?test%5B0%5D=a&test%5B1%5D=b', $this->object->transform( 'catalog_list', null, null, array( 'test' => array( 'a', 'b' ) ) ) );
62
+		$this->assertEquals('/unittest/lists?test%5B0%5D=a&test%5B1%5D=b', $this->object->transform('catalog_list', null, null, array('test' => array('a', 'b'))));
63 63
 	}
64 64
 
65 65
 
66 66
 	public function testTransformTrailing()
67 67
 	{
68
-		$this->assertEquals( '/unittest/lists?trailing=a_b', $this->object->transform( 'catalog_list', null, null, array(), array( 'a', 'b' ) ) );
68
+		$this->assertEquals('/unittest/lists?trailing=a_b', $this->object->transform('catalog_list', null, null, array(), array('a', 'b')));
69 69
 	}
70 70
 
71 71
 
72 72
 	public function testTransformAbsolute()
73 73
 	{
74
-		$options = array( 'absoluteUri' => true );
75
-		$result = $this->object->transform( 'catalog_list', null, null, array(), array(), $options );
76
-		$this->assertEquals( 'http://localhost/unittest/lists', $result );
74
+		$options = array('absoluteUri' => true);
75
+		$result = $this->object->transform('catalog_list', null, null, array(), array(), $options);
76
+		$this->assertEquals('http://localhost/unittest/lists', $result);
77 77
 	}
78 78
 }
Please login to merge, or discard this patch.