1--TEST--
2imap_undelete() 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
13
14require_once(__DIR__.'/setup/imap_include.inc');
15$stream_id = setup_test_mailbox('imapundeletebasic', 1);
16
17imap_delete($stream_id, 1);
18
19var_dump(imap_undelete($stream_id, 1));
20
21imap_close($stream_id);
22
23?>
24--CLEAN--
25<?php
26$mailbox_suffix = 'imapundeletebasic';
27require_once(__DIR__ . '/setup/clean.inc');
28?>
29--EXPECT--
30Create a temporary mailbox and add 1 msgs
31New mailbox created
32bool(true)
33