@@ -3,13 +3,13 @@ |
||
3 | 3 | |
4 | 4 | class DependencyTestSuite |
5 | 5 | { |
6 | - public static function suite() |
|
7 | - { |
|
8 | - $suite = new TestSuite('Test Dependencies'); |
|
6 | + public static function suite() |
|
7 | + { |
|
8 | + $suite = new TestSuite('Test Dependencies'); |
|
9 | 9 | |
10 | - $suite->addTestSuite(DependencySuccessTest::class); |
|
11 | - $suite->addTestSuite(DependencyFailureTest::class); |
|
10 | + $suite->addTestSuite(DependencySuccessTest::class); |
|
11 | + $suite->addTestSuite(DependencyFailureTest::class); |
|
12 | 12 | |
13 | - return $suite; |
|
14 | - } |
|
13 | + return $suite; |
|
14 | + } |
|
15 | 15 | } |
@@ -3,12 +3,12 @@ |
||
3 | 3 | |
4 | 4 | class NamespaceCoverageNotPrivateTest extends TestCase |
5 | 5 | { |
6 | - /** |
|
7 | - * @covers Foo\CoveredClass::<!private> |
|
8 | - */ |
|
9 | - public function testSomething() |
|
10 | - { |
|
11 | - $o = new Foo\CoveredClass; |
|
12 | - $o->publicMethod(); |
|
13 | - } |
|
6 | + /** |
|
7 | + * @covers Foo\CoveredClass::<!private> |
|
8 | + */ |
|
9 | + public function testSomething() |
|
10 | + { |
|
11 | + $o = new Foo\CoveredClass; |
|
12 | + $o->publicMethod(); |
|
13 | + } |
|
14 | 14 | } |
@@ -3,10 +3,10 @@ |
||
3 | 3 | |
4 | 4 | class TestAutoreferenced extends TestCase |
5 | 5 | { |
6 | - public $myTestData = null; |
|
6 | + public $myTestData = null; |
|
7 | 7 | |
8 | - public function testJsonEncodeException($data) |
|
9 | - { |
|
10 | - $this->myTestData = $data; |
|
11 | - } |
|
8 | + public function testJsonEncodeException($data) |
|
9 | + { |
|
10 | + $this->myTestData = $data; |
|
11 | + } |
|
12 | 12 | } |
@@ -3,48 +3,48 @@ |
||
3 | 3 | |
4 | 4 | class DataProviderDebugTest extends TestCase |
5 | 5 | { |
6 | - /** |
|
7 | - * @dataProvider provider |
|
8 | - */ |
|
9 | - public function testProvider() |
|
10 | - { |
|
11 | - $this->assertTrue(true); |
|
12 | - } |
|
6 | + /** |
|
7 | + * @dataProvider provider |
|
8 | + */ |
|
9 | + public function testProvider() |
|
10 | + { |
|
11 | + $this->assertTrue(true); |
|
12 | + } |
|
13 | 13 | |
14 | - public static function provider() |
|
15 | - { |
|
16 | - $obj2 = new \stdClass(); |
|
17 | - $obj2->foo = 'bar'; |
|
14 | + public static function provider() |
|
15 | + { |
|
16 | + $obj2 = new \stdClass(); |
|
17 | + $obj2->foo = 'bar'; |
|
18 | 18 | |
19 | - $obj3 = (object) [1,2,"Test\r\n",4,5,6,7,8]; |
|
19 | + $obj3 = (object) [1,2,"Test\r\n",4,5,6,7,8]; |
|
20 | 20 | |
21 | - $obj = new \stdClass(); |
|
22 | - //@codingStandardsIgnoreStart |
|
23 | - $obj->null = null; |
|
24 | - //@codingStandardsIgnoreEnd |
|
25 | - $obj->boolean = true; |
|
26 | - $obj->integer = 1; |
|
27 | - $obj->double = 1.2; |
|
28 | - $obj->string = '1'; |
|
29 | - $obj->text = "this\nis\na\nvery\nvery\nvery\nvery\nvery\nvery\rlong\n\rtext"; |
|
30 | - $obj->object = $obj2; |
|
31 | - $obj->objectagain = $obj2; |
|
32 | - $obj->array = ['foo' => 'bar']; |
|
33 | - $obj->self = $obj; |
|
21 | + $obj = new \stdClass(); |
|
22 | + //@codingStandardsIgnoreStart |
|
23 | + $obj->null = null; |
|
24 | + //@codingStandardsIgnoreEnd |
|
25 | + $obj->boolean = true; |
|
26 | + $obj->integer = 1; |
|
27 | + $obj->double = 1.2; |
|
28 | + $obj->string = '1'; |
|
29 | + $obj->text = "this\nis\na\nvery\nvery\nvery\nvery\nvery\nvery\rlong\n\rtext"; |
|
30 | + $obj->object = $obj2; |
|
31 | + $obj->objectagain = $obj2; |
|
32 | + $obj->array = ['foo' => 'bar']; |
|
33 | + $obj->self = $obj; |
|
34 | 34 | |
35 | - $storage = new \SplObjectStorage(); |
|
36 | - $storage->attach($obj2); |
|
37 | - $storage->foo = $obj2; |
|
35 | + $storage = new \SplObjectStorage(); |
|
36 | + $storage->attach($obj2); |
|
37 | + $storage->foo = $obj2; |
|
38 | 38 | |
39 | - return [ |
|
40 | - [null, true, 1, 1.0], |
|
41 | - [1.2, fopen('php://memory', 'r'), '1'], |
|
42 | - [[[1,2,3], [3,4,5]]], |
|
43 | - // \n\r and \r is converted to \n |
|
44 | - ["this\nis\na\nvery\nvery\nvery\nvery\nvery\nvery\rlong\n\rtext"], |
|
45 | - [new \stdClass(), $obj, [], $storage, $obj3], |
|
46 | - [chr(0) . chr(1) . chr(2) . chr(3) . chr(4) . chr(5), implode('', array_map('chr', range(0x0e, 0x1f)))], |
|
47 | - [chr(0x00) . chr(0x09)] |
|
48 | - ]; |
|
49 | - } |
|
39 | + return [ |
|
40 | + [null, true, 1, 1.0], |
|
41 | + [1.2, fopen('php://memory', 'r'), '1'], |
|
42 | + [[[1,2,3], [3,4,5]]], |
|
43 | + // \n\r and \r is converted to \n |
|
44 | + ["this\nis\na\nvery\nvery\nvery\nvery\nvery\nvery\rlong\n\rtext"], |
|
45 | + [new \stdClass(), $obj, [], $storage, $obj3], |
|
46 | + [chr(0) . chr(1) . chr(2) . chr(3) . chr(4) . chr(5), implode('', array_map('chr', range(0x0e, 0x1f)))], |
|
47 | + [chr(0x00) . chr(0x09)] |
|
48 | + ]; |
|
49 | + } |
|
50 | 50 | } |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | $obj2 = new \stdClass(); |
17 | 17 | $obj2->foo = 'bar'; |
18 | 18 | |
19 | - $obj3 = (object) [1,2,"Test\r\n",4,5,6,7,8]; |
|
19 | + $obj3 = (object) [1, 2, "Test\r\n", 4, 5, 6, 7, 8]; |
|
20 | 20 | |
21 | 21 | $obj = new \stdClass(); |
22 | 22 | //@codingStandardsIgnoreStart |
@@ -39,12 +39,12 @@ discard block |
||
39 | 39 | return [ |
40 | 40 | [null, true, 1, 1.0], |
41 | 41 | [1.2, fopen('php://memory', 'r'), '1'], |
42 | - [[[1,2,3], [3,4,5]]], |
|
42 | + [[[1, 2, 3], [3, 4, 5]]], |
|
43 | 43 | // \n\r and \r is converted to \n |
44 | 44 | ["this\nis\na\nvery\nvery\nvery\nvery\nvery\nvery\rlong\n\rtext"], |
45 | 45 | [new \stdClass(), $obj, [], $storage, $obj3], |
46 | - [chr(0) . chr(1) . chr(2) . chr(3) . chr(4) . chr(5), implode('', array_map('chr', range(0x0e, 0x1f)))], |
|
47 | - [chr(0x00) . chr(0x09)] |
|
46 | + [chr(0).chr(1).chr(2).chr(3).chr(4).chr(5), implode('', array_map('chr', range(0x0e, 0x1f)))], |
|
47 | + [chr(0x00).chr(0x09)] |
|
48 | 48 | ]; |
49 | 49 | } |
50 | 50 | } |
@@ -3,8 +3,8 @@ |
||
3 | 3 | |
4 | 4 | class TestError extends TestCase |
5 | 5 | { |
6 | - protected function runTest() |
|
7 | - { |
|
8 | - throw new Exception; |
|
9 | - } |
|
6 | + protected function runTest() |
|
7 | + { |
|
8 | + throw new Exception; |
|
9 | + } |
|
10 | 10 | } |
@@ -3,12 +3,12 @@ |
||
3 | 3 | |
4 | 4 | class CoverageProtectedTest extends TestCase |
5 | 5 | { |
6 | - /** |
|
7 | - * @covers CoveredClass::<protected> |
|
8 | - */ |
|
9 | - public function testSomething() |
|
10 | - { |
|
11 | - $o = new CoveredClass; |
|
12 | - $o->publicMethod(); |
|
13 | - } |
|
6 | + /** |
|
7 | + * @covers CoveredClass::<protected> |
|
8 | + */ |
|
9 | + public function testSomething() |
|
10 | + { |
|
11 | + $o = new CoveredClass; |
|
12 | + $o->publicMethod(); |
|
13 | + } |
|
14 | 14 | } |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | class TestGeneratorMaker |
3 | 3 | { |
4 | - public function create($array = []) |
|
5 | - { |
|
6 | - foreach ($array as $key => $value) { |
|
7 | - yield $key => $value; |
|
8 | - } |
|
9 | - } |
|
4 | + public function create($array = []) |
|
5 | + { |
|
6 | + foreach ($array as $key => $value) { |
|
7 | + yield $key => $value; |
|
8 | + } |
|
9 | + } |
|
10 | 10 | } |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | class AssertionExample |
3 | 3 | { |
4 | - public function doSomething() |
|
5 | - { |
|
6 | - assert(false); |
|
7 | - } |
|
4 | + public function doSomething() |
|
5 | + { |
|
6 | + assert(false); |
|
7 | + } |
|
8 | 8 | } |
@@ -3,12 +3,12 @@ |
||
3 | 3 | |
4 | 4 | class CoverageMethodTest extends TestCase |
5 | 5 | { |
6 | - /** |
|
7 | - * @covers CoveredClass::publicMethod |
|
8 | - */ |
|
9 | - public function testSomething() |
|
10 | - { |
|
11 | - $o = new CoveredClass; |
|
12 | - $o->publicMethod(); |
|
13 | - } |
|
6 | + /** |
|
7 | + * @covers CoveredClass::publicMethod |
|
8 | + */ |
|
9 | + public function testSomething() |
|
10 | + { |
|
11 | + $o = new CoveredClass; |
|
12 | + $o->publicMethod(); |
|
13 | + } |
|
14 | 14 | } |