xref: /PHP-8.0/ext/imap/tests/imap_body_uid.phpt (revision e45cc31c)
1--TEST--
2imap_body() 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("imapbodyuid", $msg_no, $uid);
13
14var_dump(imap_body($imap_mail_box, $uid, FT_UID) === imap_body($imap_mail_box, $msg_no));
15
16imap_close($imap_mail_box);
17
18?>
19--CLEAN--
20<?php
21$mailbox_suffix = 'imapbodyuid';
22require_once(__DIR__ . '/setup/clean.inc');
23?>
24--EXPECT--
25Create a temporary mailbox and add 10 msgs
26New mailbox created
27Delete 4 messages for Unique ID generation
28bool(true)
29