diff options
Diffstat (limited to 'ext/imap/tests/bug80226.phpt')
-rw-r--r-- | ext/imap/tests/bug80226.phpt | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/ext/imap/tests/bug80226.phpt b/ext/imap/tests/bug80226.phpt index 95ec235178..6cf4cc8a58 100644 --- a/ext/imap/tests/bug80226.phpt +++ b/ext/imap/tests/bug80226.phpt @@ -2,12 +2,25 @@ Bug #80226 (imap_sort() leaks sortpgm memory) --SKIPIF-- <?php -require_once(__DIR__.'/skipif.inc'); +require_once(__DIR__.'/setup/skipif.inc'); ?> --FILE-- <?php -require_once(__DIR__.'/imap_include.inc'); -$stream = imap_open($default_mailbox, $username, $password); -imap_sort($stream, SORTFROM, 0); +require_once(__DIR__.'/setup/imap_include.inc'); + +echo "Create a new mailbox for test\n"; + +$stream = setup_test_mailbox("bug80226", 0); +var_dump(imap_sort($stream, SORTFROM, 0)); +?> +--CLEAN-- +<?php +$mailbox_suffix = 'bug80226'; +require_once(__DIR__ . '/setup/clean.inc'); ?> --EXPECT-- +Create a new mailbox for test +Create a temporary mailbox and add 0 msgs +New mailbox created +array(0) { +} |