~ubuntu-branches/ubuntu/quantal/php5/quantal

« back to all changes in this revision

Viewing changes to ext/imap/tests/imap_open_error.phpt

  • Committer: Bazaar Package Importer
  • Author(s): Sean Finney
  • Date: 2009-07-01 09:12:10 UTC
  • mto: (0.9.1) (1.1.17 upstream)
  • mto: This revision was merged to the branch mainline in revision 58.
  • Revision ID: james.westby@ubuntu.com-20090701091210-go0h6506p62on17r
Tags: upstream-5.3.0
ImportĀ upstreamĀ versionĀ 5.3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--TEST--
 
2
imap_open() incorrect parameter count
 
3
--CREDITS--
 
4
Paul Sohier
 
5
#phptestfest utrecht
 
6
--SKIPIF--
 
7
<?php
 
8
require_once(dirname(__FILE__).'/skipif.inc');
 
9
?>
 
10
--FILE--
 
11
<?php
 
12
echo "Checking with no parameters\n";
 
13
imap_open();
 
14
imap_open(false);
 
15
imap_open(false, false);
 
16
imap_open('');
 
17
imap_open('', '');
 
18
 
 
19
echo "Checking with incorrect parameters\n" ;
 
20
imap_open('', '', '');
 
21
imap_open('', '', '', -1);
 
22
 
 
23
?>
 
24
--EXPECTF--
 
25
Checking with no parameters
 
26
 
 
27
Warning: imap_open() expects at least 3 parameters, 0 given in %s on line %d
 
28
 
 
29
Warning: imap_open() expects at least 3 parameters, 1 given in %s on line %d
 
30
 
 
31
Warning: imap_open() expects at least 3 parameters, 2 given in %s on line %d
 
32
 
 
33
Warning: imap_open() expects at least 3 parameters, 1 given in %s on line %d
 
34
 
 
35
Warning: imap_open() expects at least 3 parameters, 2 given in %s on line %d
 
36
Checking with incorrect parameters
 
37
 
 
38
Warning: imap_open(): Couldn't open stream  in %s on line %d
 
39
 
 
40
Warning: imap_open(): Couldn't open stream  in %s on line %d
 
41
 
 
42
Notice: Unknown: Can't open mailbox : no such mailbox (errflg=2) in Unknown on line 0