~clint-fewbar/ubuntu/quantal/php-imap/update-to-5.4

« back to all changes in this revision

Viewing changes to tests/imap_fetch_overview_variation2.phpt

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-08-03 10:57:39 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20100803105739-30wxp9owz7jgmdkc
Tags: 5.3.3-0ubuntu1
* New upstream version based on 5.3.3. 
* Add kolab patches:
  + debian/control, debian/rules: Add quilt
  + debian/patches/kolab.patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
// Initialise function arguments not being substituted
23
23
$stream_id = setup_test_mailbox('', 1, $mailbox, 'notSimple'); // set up temp mailbox with 1 msg
24
24
 
25
 
//Set mandatory response fields
26
 
$mandatoryFields = array(
27
 
                    'size',
28
 
                    'uid',
29
 
                    'msgno',
30
 
                    'recent',
31
 
                    'flagged',
32
 
                    'answered',
33
 
                    'deleted',
34
 
                    'seen',
35
 
                    'draft',
36
 
                   );
37
 
 
38
 
 
39
25
//get an unset variable
40
26
$unset_var = 10;
41
27
unset ($unset_var);
114
100
        if (!$overview) {
115
101
                echo imap_last_error() . "\n";
116
102
        } else {
117
 
                foreach ($mandatoryFields as $mf)
118
 
                {
119
 
                  $z = $overview[0]->$mf;
120
 
                  echo "$mf is $z\n";
121
 
                }
 
103
                displayOverviewFields($overview[0]);
122
104
        }
123
105
        $iterator++;
124
106
};
151
133
deleted is 0
152
134
seen is 0
153
135
draft is 0
 
136
udate is OK
154
137
 
155
138
-- Testing with second argument value: int(12345)
156
139
Sequence out of range
189
172
deleted is 0
190
173
seen is 0
191
174
draft is 0
 
175
udate is OK
192
176
 
193
177
-- Testing with second argument value: bool(false)
194
178
Sequence out of range
203
187
deleted is 0
204
188
seen is 0
205
189
draft is 0
 
190
udate is OK
206
191
 
207
192
-- Testing with second argument value: bool(false)
208
193
Sequence out of range