Completed
Push — master ( 51cf8d...934849 )
by Daryl
01:38
created
tests/unit/testMapModel.php 2 patches
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -81,40 +81,40 @@
 block discarded – undo
81 81
         $this->assertEquals(12, $this->_model->zoom());
82 82
     }
83 83
 
84
-	/**
85
-	 * @covers ::make_args
86
-	 */
84
+    /**
85
+     * @covers ::make_args
86
+     */
87 87
     public function testMakeArgs() {
88 88
 
89
-    	$args = $this->_model->make_args();
89
+        $args = $this->_model->make_args();
90 90
 
91
-	    $this->assertInternalType('array', $args);
92
-	    $this->assertArrayHasKey('center', $args);
93
-	    $this->assertArrayHasKey('zoom', $args);
94
-	    $this->assertInternalType('array', $args['center']);
95
-	    $this->assertInternalType('integer', $args['zoom']);
96
-	    $this->assertArrayHasKey('lat', $args['center']);
97
-	    $this->assertArrayHasKey('lat', $args['center']);
98
-	    $this->assertInternalType('float', $args['center']['lat']);
99
-	    $this->assertInternalType('float', $args['center']['lng']);
91
+        $this->assertInternalType('array', $args);
92
+        $this->assertArrayHasKey('center', $args);
93
+        $this->assertArrayHasKey('zoom', $args);
94
+        $this->assertInternalType('array', $args['center']);
95
+        $this->assertInternalType('integer', $args['zoom']);
96
+        $this->assertArrayHasKey('lat', $args['center']);
97
+        $this->assertArrayHasKey('lat', $args['center']);
98
+        $this->assertInternalType('float', $args['center']['lat']);
99
+        $this->assertInternalType('float', $args['center']['lng']);
100 100
 
101 101
     }
102 102
 
103
-	/**
104
-	 * @covers ::height
105
-	 */
103
+    /**
104
+     * @covers ::height
105
+     */
106 106
     public function testHeight() {
107 107
 
108
-    	$this->assertEquals('400px', $this->_model->height());
108
+        $this->assertEquals('400px', $this->_model->height());
109 109
 
110 110
     }
111 111
 
112
-	/**
113
-	 * @covers ::width
114
-	 */
112
+    /**
113
+     * @covers ::width
114
+     */
115 115
     public function testWidth() {
116 116
 
117
-    	$this->assertEquals('100%', $this->_model->width());
117
+        $this->assertEquals('100%', $this->_model->width());
118 118
 
119 119
     }
120 120
 }
Please login to merge, or discard this patch.
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     
26 26
     public function setUp() {
27 27
         
28
-        $this->_model = new Map_Model(array('center' => $this->_center, 'markers' => array('foo', 'bar', 'baz'), 'zoom' => 12));
28
+        $this->_model = new Map_Model( array( 'center' => $this->_center, 'markers' => array( 'foo', 'bar', 'baz' ), 'zoom' => 12 ) );
29 29
         
30 30
     }
31 31
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      */
35 35
     public function testCenter() {
36 36
 
37
-        $this->assertEquals($this->_center, $this->_model->center());
37
+        $this->assertEquals( $this->_center, $this->_model->center() );
38 38
 
39 39
     }
40 40
 
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      */
44 44
     public function testMarkers() {
45 45
 
46
-        $this->assertEquals(array('foo','bar','baz'), $this->_model->markers());
46
+        $this->assertEquals( array( 'foo', 'bar', 'baz' ), $this->_model->markers() );
47 47
 
48 48
     }
49 49
 
@@ -53,9 +53,9 @@  discard block
 block discarded – undo
53 53
      */
54 54
     function testAddMarker() {
55 55
 
56
-        $this->_model->add_marker('foobar');
56
+        $this->_model->add_marker( 'foobar' );
57 57
 
58
-        $this->assertContains('foobar', $this->_model->markers());
58
+        $this->assertContains( 'foobar', $this->_model->markers() );
59 59
 
60 60
     }
61 61
 
@@ -65,12 +65,12 @@  discard block
 block discarded – undo
65 65
      */
66 66
     function testAddMarkers() {
67 67
 
68
-        $this->_model->add_markers(array('foobar', 'barbaz'));
68
+        $this->_model->add_markers( array( 'foobar', 'barbaz' ) );
69 69
 
70 70
         $markers = $this->_model->markers();
71 71
 
72
-        $this->assertContains('foobar', $markers);
73
-        $this->assertContains('barbaz', $markers);
72
+        $this->assertContains( 'foobar', $markers );
73
+        $this->assertContains( 'barbaz', $markers );
74 74
 
75 75
     }
76 76
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      * @covers ::zoom
79 79
      */
80 80
     public function testZoom() {
81
-        $this->assertEquals(12, $this->_model->zoom());
81
+        $this->assertEquals( 12, $this->_model->zoom() );
82 82
     }
83 83
 
84 84
 	/**
@@ -88,15 +88,15 @@  discard block
 block discarded – undo
88 88
 
89 89
     	$args = $this->_model->make_args();
90 90
 
91
-	    $this->assertInternalType('array', $args);
92
-	    $this->assertArrayHasKey('center', $args);
93
-	    $this->assertArrayHasKey('zoom', $args);
94
-	    $this->assertInternalType('array', $args['center']);
95
-	    $this->assertInternalType('integer', $args['zoom']);
96
-	    $this->assertArrayHasKey('lat', $args['center']);
97
-	    $this->assertArrayHasKey('lat', $args['center']);
98
-	    $this->assertInternalType('float', $args['center']['lat']);
99
-	    $this->assertInternalType('float', $args['center']['lng']);
91
+	    $this->assertInternalType( 'array', $args );
92
+	    $this->assertArrayHasKey( 'center', $args );
93
+	    $this->assertArrayHasKey( 'zoom', $args );
94
+	    $this->assertInternalType( 'array', $args['center'] );
95
+	    $this->assertInternalType( 'integer', $args['zoom'] );
96
+	    $this->assertArrayHasKey( 'lat', $args['center'] );
97
+	    $this->assertArrayHasKey( 'lat', $args['center'] );
98
+	    $this->assertInternalType( 'float', $args['center']['lat'] );
99
+	    $this->assertInternalType( 'float', $args['center']['lng'] );
100 100
 
101 101
     }
102 102
 
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 	 */
106 106
     public function testHeight() {
107 107
 
108
-    	$this->assertEquals('400px', $this->_model->height());
108
+    	$this->assertEquals( '400px', $this->_model->height() );
109 109
 
110 110
     }
111 111
 
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 	 */
115 115
     public function testWidth() {
116 116
 
117
-    	$this->assertEquals('100%', $this->_model->width());
117
+    	$this->assertEquals( '100%', $this->_model->width() );
118 118
 
119 119
     }
120 120
 }
Please login to merge, or discard this patch.
tests/includes/testCase.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -63,12 +63,12 @@
 block discarded – undo
63 63
         return $reflection->invoke( $class, $args );
64 64
     }
65 65
 
66
-	/**
67
-	 * @return string
68
-	 */
66
+    /**
67
+     * @return string
68
+     */
69 69
     protected function get_sample_response() {
70 70
 
71
-    	return file_get_contents( __DIR__ . '/geocoder-response.json' );
71
+        return file_get_contents( __DIR__ . '/geocoder-response.json' );
72 72
 
73 73
     }
74 74
 }
75 75
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     {
42 42
         $reflection = new \ReflectionMethod( $class, $method );
43 43
         $reflection->setAccessible( true );
44
-        if (is_string($class)) {
44
+        if ( is_string( $class ) ) {
45 45
             $class = null;
46 46
         }
47 47
         return $reflection->invoke( $class );
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     {
58 58
         $reflection = new \ReflectionMethod( $class, $method );
59 59
         $reflection->setAccessible( true );
60
-        if (is_string($class)) {
60
+        if ( is_string( $class ) ) {
61 61
             $class = null;
62 62
         }
63 63
         return $reflection->invoke( $class, $args );
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 	 */
69 69
     protected function get_sample_response() {
70 70
 
71
-    	return file_get_contents( __DIR__ . '/geocoder-response.json' );
71
+    	return file_get_contents( __DIR__.'/geocoder-response.json' );
72 72
 
73 73
     }
74 74
 }
75 75
\ No newline at end of file
Please login to merge, or discard this patch.