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

Commit 542385f

Browse files
committed
Unit tests updated for issue #9
1 parent 4a77831 commit 542385f

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

CodeIgniter4/Tests/Arrays/ArrayDeclarationUnitTest.inc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,13 @@ class MyClass {
5353
( 'a', 'b' );
5454

5555
$a = array /* comment */ ( 'a', 'b' );
56+
57+
protected static $statusCodes = [
58+
// 1xx: Informational
59+
100 => 'Continue',
60+
101 => 'Switching Protocols',
61+
102 => 'Processing', // http://www.iana.org/go/rfc2518
62+
// 2xx: Success
63+
200 => 'OK',
64+
];
5665
}

CodeIgniter4/Tests/Arrays/ArrayDeclarationUnitTest.inc.fixed

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,4 +117,13 @@ class MyClass {
117117
'a',
118118
'b',
119119
);
120+
121+
protected static $statusCodes = [
122+
// 1xx: Informational
123+
100 => 'Continue',
124+
101 => 'Switching Protocols',
125+
102 => 'Processing', // http://www.iana.org/go/rfc2518
126+
// 2xx: Success
127+
200 => 'OK',
128+
];
120129
}

CodeIgniter4/Tests/Arrays/ArrayDeclarationUnitTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ public function getErrorList()
6666
48 => 2,
6767
51 => 1,
6868
55 => 1,
69+
59 => 1,
70+
60 => 1,
71+
61 => 1,
72+
63 => 1,
6973
);
7074

7175
}//end getErrorList()

0 commit comments

Comments
 (0)