--TEST--
Test hebrevc() function : usage variations - test values for $max_chars_per_line argument
--FILE--
\n'.\nThe function tries to avoid breaking words.\n";
foreach($inputs as $max_chars_per_line) {
echo "-- Iteration $count --\n";
var_dump( hebrevc($hebrew_text, $max_chars_per_line) );
$count ++;
}
fclose($file_handle); //closing the file handle
?>
===DONE===
--EXPECTF--
*** Testing hebrevc() function: with unexpected inputs for 'max_chars_per_line' argument ***
-- Iteration 1 --
string(241) ".The hebrevcc function converts logical Hebrew text to visual text
) This function is similar to hebrevc() with the difference that it converts newlines
.'
.The function tries to avoid breaking words
"
-- Iteration 2 --
string(331) "xttel uaisv
tot ext
ewbrHel cagilos rtveonc
ontincfuc vcreebh
he.Ts
neliewn
tsernvcot i
atthe ncrefeifd
het
thwi) c(evbrheo t
arilims
isn ioctunf
isTh) (
r
to<
.'s
rdwog inakreb
idvoa
tos ietrn ioctunf
he.T
"
-- Iteration 3 --
string(241) ".The hebrevcc function converts logical Hebrew text to visual text
) This function is similar to hebrevc() with the difference that it converts newlines
.'
.The function tries to avoid breaking words
"
-- Iteration 4 --
string(241) ".The hebrevcc function converts logical Hebrew text to visual text
) This function is similar to hebrevc() with the difference that it converts newlines
.'
.The function tries to avoid breaking words
"
-- Iteration 5 --
string(241) ".The hebrevcc function converts logical Hebrew text to visual text
) This function is similar to hebrevc() with the difference that it converts newlines
.'
.The function tries to avoid breaking words
"
-- Iteration 6 --
string(421) "txet
lausiv
ot
txet
werbeH
lacigol
strevnoc
noitcnuf
ccverbeh
ehT.
senilwen
strevnoc
ti
taht
ecnereffid
eht
htiw
)(cverbeh
ot
ralimis
si
noitcnuf
sihT
)
(
rb<'
ot<
'.
sdrow
gnikaerb
diova
ot
seirt
noitcnuf
ehT.
"
-- Iteration 7 --
string(373) "text
to visual
text
Hebrew
logical
converts
function
hebrevcc
.The
newlines
converts
that it
difference
with the
hebrevc()
similar to
is
function
) This
.'
words
breaking
to avoid
tries
function
.The
"
-- Iteration 8 --
string(421) "txet
lausiv
ot
txet
werbeH
lacigol
strevnoc
noitcnuf
ccverbeh
ehT.
senilwen
strevnoc
ti
taht
ecnereffid
eht
htiw
)(cverbeh
ot
ralimis
si
noitcnuf
sihT
)
(
rb<'
ot<
'.
sdrow
gnikaerb
diova
ot
seirt
noitcnuf
ehT.
"
-- Iteration 9 --
string(241) ".The hebrevcc function converts logical Hebrew text to visual text
) This function is similar to hebrevc() with the difference that it converts newlines
.'
.The function tries to avoid breaking words
"
-- Iteration 10 --
Warning: hebrevc() expects parameter 2 to be int, array given in %s on line %d
NULL
-- Iteration 11 --
Warning: hebrevc() expects parameter 2 to be int, array given in %s on line %d
NULL
-- Iteration 12 --
Warning: hebrevc() expects parameter 2 to be int, array given in %s on line %d
NULL
-- Iteration 13 --
string(331) "xttel uaisv
tot ext
ewbrHel cagilos rtveonc
ontincfuc vcreebh
he.Ts
neliewn
tsernvcot i
atthe ncrefeifd
het
thwi) c(evbrheo t
arilims
isn ioctunf
isTh) (
r
to<
.'s
rdwog inakreb
idvoa
tos ietrn ioctunf
he.T
"
-- Iteration 14 --
string(241) ".The hebrevcc function converts logical Hebrew text to visual text
) This function is similar to hebrevc() with the difference that it converts newlines
.'
.The function tries to avoid breaking words
"
-- Iteration 15 --
string(331) "xttel uaisv
tot ext
ewbrHel cagilos rtveonc
ontincfuc vcreebh
he.Ts
neliewn
tsernvcot i
atthe ncrefeifd
het
thwi) c(evbrheo t
arilims
isn ioctunf
isTh) (
r
to<
.'s
rdwog inakreb
idvoa
tos ietrn ioctunf
he.T
"
-- Iteration 16 --
string(241) ".The hebrevcc function converts logical Hebrew text to visual text
) This function is similar to hebrevc() with the difference that it converts newlines
.'
.The function tries to avoid breaking words
"
-- Iteration 17 --
string(241) ".The hebrevcc function converts logical Hebrew text to visual text
) This function is similar to hebrevc() with the difference that it converts newlines
.'
.The function tries to avoid breaking words
"
-- Iteration 18 --
string(241) ".The hebrevcc function converts logical Hebrew text to visual text
) This function is similar to hebrevc() with the difference that it converts newlines
.'
.The function tries to avoid breaking words
"
-- Iteration 19 --
Warning: hebrevc() expects parameter 2 to be int, string given in %s on line %d
NULL
-- Iteration 20 --
Warning: hebrevc() expects parameter 2 to be int, string given in %s on line %d
NULL
-- Iteration 21 --
Notice: A non well formed numeric value encountered in %s on line %d
string(349) "textual vis
to
textrew Heb
icallog
ertsconvion unctf
evcchebrThe .
inesnewlrts onvec
it
thatnce feredif
the
withc() brevhe
to
ilarsim
is
tionfunchis ) T
(
'
ordsw
kingbreaoid av
to
riest
tionfuncThe .
"
-- Iteration 22 --
Notice: A non well formed numeric value encountered in %s on line %d
string(241) ".The hebrevcc function converts logical Hebrew text to visual text
) This function is similar to hebrevc() with the difference that it converts newlines
.'
.The function tries to avoid breaking words
"
-- Iteration 23 --
Notice: A non well formed numeric value encountered in %s on line %d
string(241) ".The hebrevcc function converts logical Hebrew text to visual text
) This function is similar to hebrevc() with the difference that it converts newlines
.'
.The function tries to avoid breaking words
"
-- Iteration 24 --
Warning: hebrevc() expects parameter 2 to be int, object given in %s on line %d
NULL
-- Iteration 25 --
Warning: hebrevc() expects parameter 2 to be int, resource given in %s on line %d
NULL
-- Iteration 26 --
string(241) ".The hebrevcc function converts logical Hebrew text to visual text
) This function is similar to hebrevc() with the difference that it converts newlines
.'
.The function tries to avoid breaking words
"
-- Iteration 27 --
string(241) ".The hebrevcc function converts logical Hebrew text to visual text
) This function is similar to hebrevc() with the difference that it converts newlines
.'
.The function tries to avoid breaking words
"
===DONE===