1--TEST--
2imap_undelete() function : basic functionality
3--CREDITS--
4Olivier Doucet
5--SKIPIF--
6<?php
7require_once(__DIR__.'/setup/skipif.inc');
8?>
9--FILE--
10<?php
11
12require_once(__DIR__.'/setup/imap_include.inc');
13$stream_id = setup_test_mailbox('imapundeletebasic', 1);
14
15imap_delete($stream_id, 1);
16
17var_dump(imap_undelete($stream_id, 1));
18
19imap_close($stream_id);
20
21?>
22--CLEAN--
23<?php
24$mailbox_suffix = 'imapundeletebasic';
25require_once(__DIR__ . '/setup/clean.inc');
26?>
27--EXPECT--
28Create a temporary mailbox and add 1 msgs
29New mailbox created
30bool(true)
31