diff options
Diffstat (limited to 'ext/imap/tests/imap_createmailbox_basic.phpt')
-rw-r--r-- | ext/imap/tests/imap_createmailbox_basic.phpt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/imap/tests/imap_createmailbox_basic.phpt b/ext/imap/tests/imap_createmailbox_basic.phpt index 431d59f97d..e827af5960 100644 --- a/ext/imap/tests/imap_createmailbox_basic.phpt +++ b/ext/imap/tests/imap_createmailbox_basic.phpt @@ -1,7 +1,7 @@ --TEST-- -Test imap_createmailbox() function : basic functionality +Test imap_createmailbox() function : basic functionality --SKIPIF-- -<?php +<?php require_once(dirname(__FILE__).'/skipif.inc'); ?> --FILE-- @@ -15,7 +15,7 @@ echo "*** Testing imap_createmailbox() : basic functionality ***\n"; require_once(dirname(__FILE__).'/imap_include.inc'); -$imap_stream = imap_open($default_mailbox, $username, $password) or +$imap_stream = imap_open($default_mailbox, $username, $password) or die("Cannot connect to mailbox $default_mailbox: " . imap_last_error()); $newname = "phpnewbox"; @@ -25,8 +25,8 @@ echo "Newname will be '$newname'\n"; $newbox = imap_utf7_encode($server.$newname); if (imap_createmailbox($imap_stream, $newbox)) { - echo "Add a couple of msgs to '$newname' mailbox\n"; - populate_mailbox($imap_stream, $newbox, 2); + echo "Add a couple of msgs to '$newname' mailbox\n"; + populate_mailbox($imap_stream, $newbox, 2); $status = imap_status($imap_stream, $newbox, SA_ALL); if ($status) { @@ -36,7 +36,7 @@ if (imap_createmailbox($imap_stream, $newbox)) { echo "Unseen: " . $status->unseen . "\n"; echo "UIDnext: " . $status->uidnext . "\n"; echo "UIDvalidity: " . $status->uidvalidity . "\n"; - + } else { echo "imap_status on new mailbox failed: " . imap_last_error() . "\n"; } |