Skip to content

Commit 48d71af

Browse files
edgarsandicmb69
authored andcommitted
Added more tests to improve function coverage
1 parent 616661e commit 48d71af

File tree

1 file changed

+46
-2
lines changed

1 file changed

+46
-2
lines changed

ext/standard/tests/strings/hebrev_variation1.phpt

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,31 @@ $texts = array (
6565
/*21*/ @$undefined_var,
6666

6767
// unset variable
68-
/*22*/ @$unset_var
68+
/*22*/ @$unset_var,
69+
70+
// text with parentheses
71+
'text with parentheses (',
72+
'text with parentheses )',
73+
74+
// text with brackets
75+
'text with bracket [',
76+
'text with bracket ]',
77+
78+
// text with curly brackets
79+
'text with curly bracket {',
80+
'text with curly bracket }',
81+
82+
// text with backslash escape
83+
'text with backslash escape \\',
84+
85+
// text with a slash char
86+
'text with a slash char /',
87+
88+
// text with a greater than char
89+
'text with a greater than char >',
90+
91+
// text with a less than char
92+
'text with a less than char <'
6993
);
7094

7195
// loop through with each element of the $texts array to test hebrev() function
@@ -135,4 +159,24 @@ NULL
135159
bool(false)
136160
-- Iteration 22 --
137161
bool(false)
138-
===DONE===
162+
-- Iteration 23 --
163+
string(23) ") text with parentheses"
164+
-- Iteration 24 --
165+
string(23) "( text with parentheses"
166+
-- Iteration 25 --
167+
string(19) "] text with bracket"
168+
-- Iteration 26 --
169+
string(19) "[ text with bracket"
170+
-- Iteration 27 --
171+
string(25) "} text with curly bracket"
172+
-- Iteration 28 --
173+
string(25) "{ text with curly bracket"
174+
-- Iteration 29 --
175+
string(28) "/ text with backslash escape"
176+
-- Iteration 30 --
177+
string(24) "text with a slash char /"
178+
-- Iteration 31 --
179+
string(31) "< text with a greater than char"
180+
-- Iteration 32 --
181+
string(28) "> text with a less than char"
182+
===DONE===

0 commit comments

Comments
 (0)