Completed
Push — master ( d40e31...09d055 )
by Daryl
01:35
created
RoboFile.php 1 patch
Indentation   +43 added lines, -43 removed lines patch added patch discarded remove patch
@@ -7,48 +7,48 @@
 block discarded – undo
7 7
 class RoboFile extends \Robo\Tasks
8 8
 {
9 9
     // define public methods as commands
10
-	function tests()
11
-	{
12
-
13
-		$this->taskExec('mysql -e "CREATE DATABASE IF NOT EXISTS test_db"')->run();
14
-		$this->taskExec('mysql -e "GRANT ALL ON test_db.* to \'root\'@\'%\'"')->run();
15
-		$this->taskSvnStack()
16
-			->checkout('https://develop.svn.wordpress.org/tags/4.8.3 wp-tests')
17
-			->run();
18
-
19
-		$this->setTestConfig();
20
-		$this->phpunit();
21
-
22
-	}
23
-
24
-	function phpunit()
25
-	{
26
-		$this->taskPhpUnit('vendor/bin/phpunit')
27
-		     ->configFile('tests/phpunit.xml.dist')
28
-		     ->run();
29
-	}
30
-
31
-	private function setTestConfig()
32
-	{
33
-
34
-		if (file_exists('wp-tests/wp-tests-config-sample.php')) {
35
-			copy('wp-tests/wp-tests-config-sample.php', 'wp-tests/wp-tests-config.php');
36
-		}
37
-
38
-		$this->taskReplaceInFile( 'wp-tests/wp-tests-config.php')
39
-			->from('youremptytestdbnamehere')
40
-			->to('test_db')
41
-			->run();
42
-
43
-		$this->taskReplaceInFile( 'wp-tests/wp-tests-config.php')
44
-			->from('yourusernamehere')
45
-			->to('root')
46
-			->run();
47
-
48
-		$this->taskReplaceInFile( 'wp-tests/wp-tests-config.php')
49
-			->from('yourpasswordhere')
50
-			->to('')
51
-			->run();
52
-	}
10
+    function tests()
11
+    {
12
+
13
+        $this->taskExec('mysql -e "CREATE DATABASE IF NOT EXISTS test_db"')->run();
14
+        $this->taskExec('mysql -e "GRANT ALL ON test_db.* to \'root\'@\'%\'"')->run();
15
+        $this->taskSvnStack()
16
+            ->checkout('https://develop.svn.wordpress.org/tags/4.8.3 wp-tests')
17
+            ->run();
18
+
19
+        $this->setTestConfig();
20
+        $this->phpunit();
21
+
22
+    }
23
+
24
+    function phpunit()
25
+    {
26
+        $this->taskPhpUnit('vendor/bin/phpunit')
27
+                ->configFile('tests/phpunit.xml.dist')
28
+                ->run();
29
+    }
30
+
31
+    private function setTestConfig()
32
+    {
33
+
34
+        if (file_exists('wp-tests/wp-tests-config-sample.php')) {
35
+            copy('wp-tests/wp-tests-config-sample.php', 'wp-tests/wp-tests-config.php');
36
+        }
37
+
38
+        $this->taskReplaceInFile( 'wp-tests/wp-tests-config.php')
39
+            ->from('youremptytestdbnamehere')
40
+            ->to('test_db')
41
+            ->run();
42
+
43
+        $this->taskReplaceInFile( 'wp-tests/wp-tests-config.php')
44
+            ->from('yourusernamehere')
45
+            ->to('root')
46
+            ->run();
47
+
48
+        $this->taskReplaceInFile( 'wp-tests/wp-tests-config.php')
49
+            ->from('yourpasswordhere')
50
+            ->to('')
51
+            ->run();
52
+    }
53 53
 
54 54
 }
55 55
\ No newline at end of file
Please login to merge, or discard this patch.
includes/class-map-model.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -118,16 +118,16 @@
 block discarded – undo
118 118
 
119 119
     }
120 120
 
121
-	/**
122
-	 * @return array
123
-	 */
124
-	function make_args() {
121
+    /**
122
+     * @return array
123
+     */
124
+    function make_args() {
125 125
 
126
-		return array(
127
-			'center' => $this->center(),
128
-			'zoom'   => (int)$this->zoom()
129
-		);
126
+        return array(
127
+            'center' => $this->center(),
128
+            'zoom'   => (int)$this->zoom()
129
+        );
130 130
 
131
-	}
131
+    }
132 132
 
133 133
 }
Please login to merge, or discard this patch.
tests/unit/testMapModel.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -81,22 +81,22 @@
 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();
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']);
89
+        $args = $this->_model->make_args();
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']);
100 100
 
101 101
     }
102 102
 }
Please login to merge, or discard this patch.