1--TEST-- 2imap_sort() basics 3--EXTENSIONS-- 4imap 5--SKIPIF-- 6<?php 7require_once(__DIR__.'/setup/skipif.inc'); 8?> 9--FILE-- 10<?php 11 12require_once(__DIR__.'/setup/imap_include.inc'); 13 14$imap_mail_box = setup_test_mailbox_for_uid_tests("imapsortbasic"); 15 16var_dump(imap_sort($imap_mail_box, SORTSUBJECT, 0)); 17var_dump(imap_sort($imap_mail_box, SORTSUBJECT, 0, SE_UID)); 18 19imap_close($imap_mail_box); 20 21?> 22--CLEAN-- 23<?php 24$mailbox_suffix = 'imapsortbasic'; 25require_once(__DIR__ . '/setup/clean.inc'); 26?> 27--EXPECT-- 28Create a temporary mailbox and add 10 msgs 29New mailbox created 30Delete 4 messages for Unique ID generation 31array(6) { 32 [0]=> 33 int(1) 34 [1]=> 35 int(6) 36 [2]=> 37 int(2) 38 [3]=> 39 int(3) 40 [4]=> 41 int(4) 42 [5]=> 43 int(5) 44} 45array(6) { 46 [0]=> 47 int(1) 48 [1]=> 49 int(10) 50 [2]=> 51 int(2) 52 [3]=> 53 int(7) 54 [4]=> 55 int(8) 56 [5]=> 57 int(9) 58} 59