1--TEST--
2imap_fetchstructure() passing a unique ID
3--SKIPIF--
4<?php
5require_once(__DIR__.'/setup/skipif.inc');
6?>
7--FILE--
8<?php
9
10require_once(__DIR__.'/setup/imap_include.inc');
11
12$imap_mail_box = setup_test_mailbox_for_uid_tests("imapfetchstructureuid", $msg_no, $uid);
13
14// Usage of == because comparing objects
15var_dump(imap_fetchstructure($imap_mail_box, $uid, FT_UID) == imap_fetchstructure($imap_mail_box, $msg_no));
16
17imap_close($imap_mail_box);
18
19?>
20--CLEAN--
21<?php
22$mailbox_suffix = 'imapfetchstructureuid';
23require_once(__DIR__ . '/setup/clean.inc');
24?>
25--EXPECT--
26Create a temporary mailbox and add 10 msgs
27New mailbox created
28Delete 4 messages for Unique ID generation
29bool(true)
30