Skip to content

Commit 6761e93

Browse files
committed
add tests
1 parent 9d305af commit 6761e93

1 file changed

Lines changed: 19 additions & 3 deletions

File tree

ext/intl/tests/spoofchecker_supported_icu57_apis.phpt

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,29 @@ intl
88
<?php
99
$r = new ReflectionClass("Spoofchecker");
1010

11-
var_dump($r->getConstant("ASCII") !== false);
12-
var_dump($r->getConstant("SINGLE_SCRIPT_RESTRICTIVE") !== false);
13-
var_dump($r->getConstant("MIXED_NUMBERS") !== false);
11+
$ascii = $r->getConstant("ASCII");
12+
$singleScriptRestrictive = $r->getConstant("SINGLE_SCRIPT_RESTRICTIVE");
13+
$mixedNumbers = $r->getConstant("MIXED_NUMBERS");
14+
15+
var_dump($ascii !== false);
16+
var_dump($singleScriptRestrictive !== false);
17+
var_dump($mixedNumbers !== false);
18+
var_dump(is_int($ascii));
19+
var_dump(is_int($singleScriptRestrictive));
20+
var_dump(is_int($mixedNumbers));
21+
var_dump($ascii !== $singleScriptRestrictive);
22+
var_dump($ascii !== $mixedNumbers);
23+
var_dump($singleScriptRestrictive !== $mixedNumbers);
1424
var_dump($r->hasMethod("setRestrictionLevel"));
1525
?>
1626
--EXPECT--
1727
bool(true)
1828
bool(true)
1929
bool(true)
2030
bool(true)
31+
bool(true)
32+
bool(true)
33+
bool(true)
34+
bool(true)
35+
bool(true)
36+
bool(true)

0 commit comments

Comments
 (0)