@@ -19,7 +19,7 @@ |
||
19 | 19 | array('#valid regexp#', 'valid regexp', 1), |
20 | 20 | array(';val.*xp;', 'valid regexp', 1), |
21 | 21 | array('/val.*xp/i', 'VALID REGEXP', 1), |
22 | - array('/a val.*p/','valid regexp', 0), |
|
22 | + array('/a val.*p/', 'valid regexp', 0), |
|
23 | 23 | ); |
24 | 24 | } |
25 | 25 |
@@ -134,16 +134,16 @@ discard block |
||
134 | 134 | public function requirementsProvider() |
135 | 135 | { |
136 | 136 | return array( |
137 | - array('testOne', array()), |
|
138 | - array('testTwo', array('PHPUnit' => '1.0')), |
|
139 | - array('testThree', array('PHP' => '2.0')), |
|
140 | - array('testFour', array('PHPUnit' => '2.0', 'PHP' => '1.0')), |
|
141 | - array('testFive', array('PHP' => '5.4.0RC6')), |
|
142 | - array('testSix', array('PHP' => '5.4.0-alpha1')), |
|
143 | - array('testSeven', array('PHP' => '5.4.0beta2')), |
|
144 | - array('testEight', array('PHP' => '5.4-dev')), |
|
145 | - array('testNine', array('functions' => array('testFunc'))), |
|
146 | - array('testTen', array('extensions' => array('testExt'))), |
|
137 | + array('testOne', array()), |
|
138 | + array('testTwo', array('PHPUnit' => '1.0')), |
|
139 | + array('testThree', array('PHP' => '2.0')), |
|
140 | + array('testFour', array('PHPUnit' => '2.0', 'PHP' => '1.0')), |
|
141 | + array('testFive', array('PHP' => '5.4.0RC6')), |
|
142 | + array('testSix', array('PHP' => '5.4.0-alpha1')), |
|
143 | + array('testSeven', array('PHP' => '5.4.0beta2')), |
|
144 | + array('testEight', array('PHP' => '5.4-dev')), |
|
145 | + array('testNine', array('functions' => array('testFunc'))), |
|
146 | + array('testTen', array('extensions' => array('testExt'))), |
|
147 | 147 | array('testEleven', array('OS' => '/Linux/i')), |
148 | 148 | array( |
149 | 149 | 'testSpace', |
@@ -211,12 +211,12 @@ discard block |
||
211 | 211 | public function missingRequirementsProvider() |
212 | 212 | { |
213 | 213 | return array( |
214 | - array('testOne', array()), |
|
215 | - array('testNine', array('Function testFunc is required.')), |
|
216 | - array('testTen', array('Extension testExt is required.')), |
|
217 | - array('testAlwaysSkip', array('PHPUnit 1111111 (or later) is required.')), |
|
218 | - array('testAlwaysSkip2', array('PHP 9999999 (or later) is required.')), |
|
219 | - array('testAlwaysSkip3', array('Operating system matching /DOESNOTEXIST/i is required.')), |
|
214 | + array('testOne', array()), |
|
215 | + array('testNine', array('Function testFunc is required.')), |
|
216 | + array('testTen', array('Extension testExt is required.')), |
|
217 | + array('testAlwaysSkip', array('PHPUnit 1111111 (or later) is required.')), |
|
218 | + array('testAlwaysSkip2', array('PHP 9999999 (or later) is required.')), |
|
219 | + array('testAlwaysSkip3', array('Operating system matching /DOESNOTEXIST/i is required.')), |
|
220 | 220 | array('testAllPossibleRequirements', array( |
221 | 221 | 'PHP 99-dev (or later) is required.', |
222 | 222 | 'PHPUnit 9-dev (or later) is required.', |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | $obj2 = new \stdClass(); |
15 | 15 | $obj2->foo = 'bar'; |
16 | 16 | |
17 | - $obj3 = (object) array(1,2,"Test\r\n",4,5,6,7,8); |
|
17 | + $obj3 = (object) array(1, 2, "Test\r\n", 4, 5, 6, 7, 8); |
|
18 | 18 | |
19 | 19 | $obj = new \stdClass(); |
20 | 20 | //@codingStandardsIgnoreStart |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | return array( |
38 | 38 | array(null, true, 1, 1.0), |
39 | 39 | array(1.2, fopen('php://memory', 'r'), '1'), |
40 | - array(array(array(1,2,3), array(3,4,5))), |
|
40 | + array(array(array(1, 2, 3), array(3, 4, 5))), |
|
41 | 41 | // \n\r and \r is converted to \n |
42 | 42 | array("this\nis\na\nvery\nvery\nvery\nvery\nvery\nvery\rlong\n\rtext"), |
43 | 43 | array(new \stdClass(), $obj, array(), $storage, $obj3), |
@@ -7,7 +7,7 @@ |
||
7 | 7 | $this->assertEquals(0, count($stack)); |
8 | 8 | |
9 | 9 | array_push($stack, 'foo'); |
10 | - $this->assertEquals('foo', $stack[count($stack)-1]); |
|
10 | + $this->assertEquals('foo', $stack[count($stack) - 1]); |
|
11 | 11 | $this->assertEquals(1, count($stack)); |
12 | 12 | |
13 | 13 | return $stack; |
@@ -152,7 +152,7 @@ |
||
152 | 152 | * @covers ::assertEquals |
153 | 153 | * @dataProvider assertEqualsFailsProvider |
154 | 154 | */ |
155 | - public function testAssertEqualsFails($expected, $actual,$delta = 0.0, $canonicalize = false) |
|
155 | + public function testAssertEqualsFails($expected, $actual, $delta = 0.0, $canonicalize = false) |
|
156 | 156 | { |
157 | 157 | $this->setExpectedException( |
158 | 158 | 'SebastianBergmann\\Comparator\\ComparisonFailure', |
@@ -59,8 +59,8 @@ |
||
59 | 59 | array(2.3, 2.5, 0.5), |
60 | 60 | array(3, 3.05, 0.05), |
61 | 61 | array(1.2e3, 1201, 1), |
62 | - array((string)(1/3), 1 - 2/3), |
|
63 | - array(1/3, (string)(1 - 2/3)) |
|
62 | + array((string) (1 / 3), 1 - 2 / 3), |
|
63 | + array(1 / 3, (string) (1 - 2 / 3)) |
|
64 | 64 | ); |
65 | 65 | } |
66 | 66 |
@@ -84,7 +84,7 @@ |
||
84 | 84 | $book4 = new stdClass; |
85 | 85 | $book4->author = 'Terry Pratchett'; |
86 | 86 | |
87 | - $object1 = new SampleClass( 4, 8, 15); |
|
87 | + $object1 = new SampleClass(4, 8, 15); |
|
88 | 88 | $object2 = new SampleClass(16, 23, 42); |
89 | 89 | |
90 | 90 | return array( |
@@ -89,7 +89,7 @@ |
||
89 | 89 | array("STRING", "string", $stringException), |
90 | 90 | array("string", "other string", $stringException), |
91 | 91 | // https://github.com/sebastianbergmann/phpunit/issues/1023 |
92 | - array('9E6666666','9E7777777', $stringException), |
|
92 | + array('9E6666666', '9E7777777', $stringException), |
|
93 | 93 | array(new ClassWithToString, "does not match", $otherException), |
94 | 94 | array("does not match", new ClassWithToString, $otherException), |
95 | 95 | array(0, 'Foobar', $otherException), |
@@ -48,7 +48,7 @@ |
||
48 | 48 | array(1.0, 2.0), |
49 | 49 | array("hello", "world"), |
50 | 50 | array("", ""), |
51 | - array(array(), array(1,2,3)) |
|
51 | + array(array(), array(1, 2, 3)) |
|
52 | 52 | ); |
53 | 53 | } |
54 | 54 |