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