Completed
Push — develop ( 8a861b...6459a3 )
by Remco
04:56
created
tests/UtilTest.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -18,9 +18,9 @@  discard block
 block discarded – undo
18 18
 	public function test_to_string_boolean() {
19 19
 		$boolean = false;
20 20
 
21
-		$result = Util::boolean_to_string( $boolean );
21
+		$result = Util::boolean_to_string($boolean);
22 22
 
23
-		$this->assertEquals( 'false', $result );
23
+		$this->assertEquals('false', $result);
24 24
 	}
25 25
 
26 26
 	/**
@@ -28,21 +28,21 @@  discard block
 block discarded – undo
28 28
 	 *
29 29
 	 * @dataProvider format_price_matrix_provider
30 30
 	 */
31
-	public function test_format_price( $amount, $currency, $expected ) {
32
-		$formatted = Util::format_price( $amount );
31
+	public function test_format_price($amount, $currency, $expected) {
32
+		$formatted = Util::format_price($amount);
33 33
 
34
-		$this->assertEquals( $expected, $formatted );
34
+		$this->assertEquals($expected, $formatted);
35 35
 	}
36 36
 
37 37
 	public function format_price_matrix_provider() {
38 38
 		return array(
39
-			array( '', null, null ),
40
-			array( false, null, null ),
41
-			array( array(), null, null ),
42
-			array( new stdClass(), null, null ),
43
-			array( 0, null, '€ 0.00' ),
44
-			array( 123, null, '€ 123.00' ),
45
-			array( 123456, null, '€ 123,456.00' ),
39
+			array('', null, null),
40
+			array(false, null, null),
41
+			array(array(), null, null),
42
+			array(new stdClass(), null, null),
43
+			array(0, null, '€ 0.00'),
44
+			array(123, null, '€ 123.00'),
45
+			array(123456, null, '€ 123,456.00'),
46 46
 		);
47 47
 	}
48 48
 }
Please login to merge, or discard this patch.
tests/bootstrap.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-$_tests_dir = getenv( 'WP_TESTS_DIR' );
4
-if ( ! $_tests_dir ) {
3
+$_tests_dir = getenv('WP_TESTS_DIR');
4
+if ( ! $_tests_dir) {
5 5
 	$_tests_dir = '/tmp/wordpress-tests-lib';
6 6
 }
7 7
 
8 8
 require_once $_tests_dir . '/includes/functions.php';
9 9
 
10 10
 function _manually_load_plugin() {
11
-	require dirname( __FILE__ ) . '/../pronamic-ideal.php';
11
+	require dirname(__FILE__) . '/../pronamic-ideal.php';
12 12
 }
13 13
 
14
-tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' );
14
+tests_add_filter('muplugins_loaded', '_manually_load_plugin');
15 15
 
16 16
 require $_tests_dir . '/includes/bootstrap.php';
Please login to merge, or discard this patch.