1--TEST-- 2Test imap_mail_move() function : basic functionality 3--CREDITS-- 4Olivier Doucet 5--SKIPIF-- 6<?php 7require_once(__DIR__.'/setup/skipif.inc'); 8?> 9--FILE-- 10<?php 11echo "*** Testing imap_mail_move() : basic functionality ***\n"; 12 13require_once(__DIR__.'/setup/imap_include.inc'); 14 15echo "Create a new mailbox for test\n"; 16$imap_stream = setup_test_mailbox("movebasic", 1); 17 18$check = imap_check($imap_stream); 19echo "Msg Count in new mailbox: ". $check->Nmsgs . "\n"; 20 21var_dump(imap_mail_move($imap_stream, '1', 'INBOX.' . IMAP_MAILBOX_PHPT_PREFIX . 'movebasic')); 22 23imap_close($imap_stream); 24?> 25--CLEAN-- 26<?php 27$mailbox_suffix = 'movebasic'; 28require_once(__DIR__.'/setup/clean.inc'); 29?> 30--EXPECT-- 31*** Testing imap_mail_move() : basic functionality *** 32Create a new mailbox for test 33Create a temporary mailbox and add 1 msgs 34New mailbox created 35Msg Count in new mailbox: 1 36bool(true) 37