php-src/ext/standard/tests/array/004.phpt
Steph Fox 833f4150a1 - killed off UEXPECT
- could someone please fix var_export2.phpt? NUL is corrupted, can't fix here
2008-05-26 23:36:10 +00:00

60 lines
740 B
PHP

--TEST--
Test natsort and natcasesort
--INI--
precision=14
--FILE--
<?php
$data = array(
'Test1',
'teST2'=>0,
5=>'test2',
'abc'=>'test10',
'test21'
);
var_dump($data);
natsort($data);
var_dump($data);
natcasesort($data);
var_dump($data);
?>
--EXPECT--
array(5) {
[0]=>
unicode(5) "Test1"
[u"teST2"]=>
int(0)
[5]=>
unicode(5) "test2"
[u"abc"]=>
unicode(6) "test10"
[6]=>
unicode(6) "test21"
}
array(5) {
[u"teST2"]=>
int(0)
[0]=>
unicode(5) "Test1"
[5]=>
unicode(5) "test2"
[u"abc"]=>
unicode(6) "test10"
[6]=>
unicode(6) "test21"
}
array(5) {
[u"teST2"]=>
int(0)
[0]=>
unicode(5) "Test1"
[5]=>
unicode(5) "test2"
[u"abc"]=>
unicode(6) "test10"
[6]=>
unicode(6) "test21"
}