Skip to content
This repository was archived by the owner on Nov 5, 2022. It is now read-only.

Commit 477ec20

Browse files
committed
Tidied up unit tests
1 parent 5498ab3 commit 477ec20

File tree

9 files changed

+51
-41
lines changed

9 files changed

+51
-41
lines changed

CodeIgniter4/Tests/Arrays/ArrayDeclarationUnitTest.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
class MyClass {
34

45
protected $codes = [

CodeIgniter4/Tests/Arrays/ArrayDeclarationUnitTest.inc.fixed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
class MyClass {
34

45
protected $codes = [

CodeIgniter4/Tests/Arrays/ArrayDeclarationUnitTest.php

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<?php
22
/**
3-
* Unit test class for the ArrayDeclarationTest sniff.
3+
* Array Declaration Unit Test
44
*
5-
* @author Greg Sherwood <gsherwood@squiz.net>
6-
* @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
7-
* @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
5+
* @package CodeIgniter4-Standard
6+
* @author Louis Linehan <louis.linehan@gmail.com>
7+
* @copyright 2017 Louis Linehan
8+
* @license https://github.com/louisl/CodeIgniter4-Standard/blob/master/LICENSE MIT License
89
*/
910

1011
namespace CodeIgniter4\Tests\Arrays;
@@ -41,35 +42,35 @@ public function setCliValues($testFile, $config)
4142
public function getErrorList()
4243
{
4344
return array(
44-
5 => 1,
4545
6 => 1,
4646
7 => 1,
4747
8 => 1,
4848
9 => 1,
4949
10 => 1,
5050
11 => 1,
5151
12 => 1,
52-
13 => 2,
53-
14 => 1,
52+
13 => 1,
53+
14 => 2,
5454
15 => 1,
55-
21 => 1,
56-
28 => 1,
55+
16 => 1,
56+
22 => 1,
5757
29 => 1,
58-
35 => 1,
59-
36 => 2,
60-
41 => 2,
58+
30 => 1,
59+
36 => 1,
60+
37 => 2,
6161
42 => 2,
6262
43 => 2,
6363
44 => 2,
64-
46 => 2,
64+
45 => 2,
6565
47 => 2,
6666
48 => 2,
67-
51 => 1,
68-
55 => 1,
69-
59 => 1,
67+
49 => 2,
68+
52 => 1,
69+
56 => 1,
7070
60 => 1,
7171
61 => 1,
72-
63 => 1,
72+
62 => 1,
73+
64 => 1,
7374
);
7475

7576
}//end getErrorList()

CodeIgniter4/Tests/ControlStructures/AllmanControlSignatureUnitTest.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<?php
22
/**
3-
* Unit test class for the ArrayDeclarationTest sniff.
3+
* Allman Control Signature Unit Test
44
*
5-
* @author Greg Sherwood <gsherwood@squiz.net>
6-
* @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
7-
* @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
5+
* @package CodeIgniter4-Standard
6+
* @author Louis Linehan <louis.linehan@gmail.com>
7+
* @copyright 2017 Louis Linehan
8+
* @license https://github.com/louisl/CodeIgniter4-Standard/blob/master/LICENSE MIT License
89
*/
910

1011
namespace CodeIgniter4\Tests\ControlStructures;

CodeIgniter4/Tests/NamingConventions/ValidMethodNameUnitTest.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<?php
22
/**
3-
* Unit test class for the ValidMethodNameUnitTest sniff.
3+
* Valid Method Name Unit Test
44
*
5-
* @author Greg Sherwood <gsherwood@squiz.net>
6-
* @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
7-
* @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
5+
* @package CodeIgniter4-Standard
6+
* @author Louis Linehan <louis.linehan@gmail.com>
7+
* @copyright 2017 Louis Linehan
8+
* @license https://github.com/louisl/CodeIgniter4-Standard/blob/master/LICENSE MIT License
89
*/
910

1011
namespace CodeIgniter4\Tests\NamingConventions;

CodeIgniter4/Tests/NamingConventions/ValidVariableNameUnitTest.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<?php
22
/**
3-
* Unit test class for the ValidMethodNameUnitTest sniff.
3+
* Valid Variable Name Unit Test
44
*
5-
* @author Greg Sherwood <gsherwood@squiz.net>
6-
* @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
7-
* @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
5+
* @package CodeIgniter4-Standard
6+
* @author Louis Linehan <louis.linehan@gmail.com>
7+
* @copyright 2017 Louis Linehan
8+
* @license https://github.com/louisl/CodeIgniter4-Standard/blob/master/LICENSE MIT License
89
*/
910

1011
namespace CodeIgniter4\Tests\NamingConventions;

CodeIgniter4/Tests/Operators/BooleanOrUnitTest.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<?php
22
/**
3-
* Unit test class for the ValidMethodNameUnitTest sniff.
3+
* Boolean Or Unit Test
44
*
5-
* @author Greg Sherwood <gsherwood@squiz.net>
6-
* @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
7-
* @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
5+
* @package CodeIgniter4-Standard
6+
* @author Louis Linehan <louis.linehan@gmail.com>
7+
* @copyright 2017 Louis Linehan
8+
* @license https://github.com/louisl/CodeIgniter4-Standard/blob/master/LICENSE MIT License
89
*/
910

1011
namespace CodeIgniter4\Tests\Operators;

CodeIgniter4/Tests/WhiteSpace/BooleanNotSpaceAfterUnitTest.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<?php
22
/**
3-
* Unit test class for the ValidMethodNameUnitTest sniff.
3+
* Boolean Not Space After Unit Test
44
*
5-
* @author Greg Sherwood <gsherwood@squiz.net>
6-
* @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
7-
* @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
5+
* @package CodeIgniter4-Standard
6+
* @author Louis Linehan <louis.linehan@gmail.com>
7+
* @copyright 2017 Louis Linehan
8+
* @license https://github.com/louisl/CodeIgniter4-Standard/blob/master/LICENSE MIT License
89
*/
910

1011
namespace CodeIgniter4\Tests\WhiteSpace;
@@ -14,6 +15,7 @@
1415
class BooleanNotSpaceAfterUnitTest extends AbstractSniffUnitTest
1516
{
1617

18+
1719
/**
1820
* Returns the lines where errors should occur.
1921
*

CodeIgniter4/Tests/WhiteSpace/DisallowTabsInAlignmentUnitTest.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<?php
22
/**
3-
* Unit test class for the ValidMethodNameUnitTest sniff.
3+
* Disallow Tabs In Alignment Unit Test
44
*
5-
* @author Greg Sherwood <gsherwood@squiz.net>
6-
* @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
7-
* @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
5+
* @package CodeIgniter4-Standard
6+
* @author Louis Linehan <louis.linehan@gmail.com>
7+
* @copyright 2017 Louis Linehan
8+
* @license https://github.com/louisl/CodeIgniter4-Standard/blob/master/LICENSE MIT License
89
*/
910

1011
namespace CodeIgniter4\Tests\WhiteSpace;

0 commit comments

Comments
 (0)