Skip to content

Commit f155a87

Browse files
committed
update tests for https-first behavior
1 parent bcffcf5 commit f155a87

File tree

1 file changed

+44
-13
lines changed
  • tests/PEAR_Command_Channels/update-channels

1 file changed

+44
-13
lines changed

tests/PEAR_Command_Channels/update-channels/test.phpt

Lines changed: 44 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,17 @@ $phpunit->assertEquals(array (
3939
),
4040
1 =>
4141
array (
42-
'info' => 'Channel "doc.php.net" is not responding over http://, failed with message: File http://doc.php.net:80/channel.xml not valid (received: HTTP/1.1 404 http://doc.php.net/channel.xml Is not valid)',
42+
'info' => 'Channel "doc.php.net" is not responding over https://, failed with message: File https://doc.php.net:443/channel.xml not valid (received: HTTP/1.1 404 https://doc.php.net/channel.xml Is not valid)',
4343
'cmd' => 'no command',
4444
),
45+
2 =>
4546
array (
46-
'info' => 'Trying channel "doc.php.net" over https:// instead',
47+
'info' => 'Trying channel "doc.php.net" over http:// instead',
4748
'cmd' => 'no command',
4849
),
4950
3 =>
5051
array (
51-
'info' => 'Cannot retrieve channel.xml for channel "doc.php.net" (File https://doc.php.net:443/channel.xml not valid (received: HTTP/1.1 404 https://doc.php.net/channel.xml Is not valid))',
52+
'info' => 'Cannot retrieve channel.xml for channel "doc.php.net" (File http://doc.php.net:80/channel.xml not valid (received: HTTP/1.1 404 http://doc.php.net/channel.xml Is not valid))',
5253
'cmd' => 'update-channels',
5354
),
5455
4 =>
@@ -58,45 +59,75 @@ $phpunit->assertEquals(array (
5859
),
5960
5 =>
6061
array (
61-
'info' => 'Update of Channel "horde.orde.de" succeeded',
62+
'info' => 'Channel "horde.orde.de" is not responding over https://, failed with message: File https://horde.orde.de:443/channel.xml not valid (received: HTTP/1.1 404 https://horde.orde.de/channel.xml Is not valid)',
6263
'cmd' => 'no command',
6364
),
6465
6 =>
6566
array (
66-
'info' => 'Updating channel "pear.php.net"',
67-
'cmd' => 'channel-update',
67+
'info' => 'Trying channel "horde.orde.de" over http:// instead',
68+
'cmd' => 'no command',
6869
),
6970
7 =>
7071
array (
71-
'info' => 'Update of Channel "pear.php.net" succeeded',
72+
'info' => 'Update of Channel "horde.orde.de" succeeded',
7273
'cmd' => 'no command',
7374
),
7475
8 =>
7576
array (
76-
'info' => 'Updating channel "pecl.php.net"',
77+
'info' => 'Updating channel "pear.php.net"',
7778
'cmd' => 'channel-update',
7879
),
7980
9 =>
8081
array (
81-
'info' => 'Channel "pecl.php.net" is not responding over http://, failed with message: File http://pecl.php.net:80/channel.xml not valid (received: HTTP/1.1 404 http://pecl.php.net/channel.xml Is not valid)',
82+
'info' => 'Channel "pear.php.net" is not responding over https://, failed with message: File https://pear.php.net:443/channel.xml not valid (received: HTTP/1.1 404 https://pear.php.net/channel.xml Is not valid)',
8283
'cmd' => 'no command',
8384
),
8485
10 =>
8586
array (
86-
'info' => 'Trying channel "pecl.php.net" over https:// instead',
87+
'info' => 'Trying channel "pear.php.net" over http:// instead',
8788
'cmd' => 'no command',
8889
),
8990
11 =>
9091
array (
91-
'info' => 'Cannot retrieve channel.xml for channel "pecl.php.net" (File https://pecl.php.net:443/channel.xml not valid (received: HTTP/1.1 404 https://pecl.php.net/channel.xml Is not valid))',
92-
'cmd' => 'update-channels',
92+
'info' => 'Update of Channel "pear.php.net" succeeded',
93+
'cmd' => 'no command',
9394
),
9495
12 =>
9596
array (
96-
'info' => 'Updating channel "zornk.ornk.org"',
97+
'info' => 'Updating channel "pecl.php.net"',
9798
'cmd' => 'channel-update',
9899
),
99100
13 =>
101+
array (
102+
'info' => 'Channel "pecl.php.net" is not responding over https://, failed with message: File https://pecl.php.net:443/channel.xml not valid (received: HTTP/1.1 404 https://pecl.php.net/channel.xml Is not valid)',
103+
'cmd' => 'no command',
104+
),
105+
14 =>
106+
array (
107+
'info' => 'Trying channel "pecl.php.net" over http:// instead',
108+
'cmd' => 'no command',
109+
),
110+
15 =>
111+
array (
112+
'info' => 'Cannot retrieve channel.xml for channel "pecl.php.net" (File http://pecl.php.net:80/channel.xml not valid (received: HTTP/1.1 404 http://pecl.php.net/channel.xml Is not valid))',
113+
'cmd' => 'update-channels',
114+
),
115+
16 =>
116+
array (
117+
'info' => 'Updating channel "zornk.ornk.org"',
118+
'cmd' => 'channel-update',
119+
),
120+
17 =>
121+
array (
122+
'info' => 'Channel "zornk.ornk.org" is not responding over https://, failed with message: File https://zornk.ornk.org:443/channel.xml not valid (received: HTTP/1.1 404 https://zornk.ornk.org/channel.xml Is not valid)',
123+
'cmd' => 'no command',
124+
),
125+
18 =>
126+
array (
127+
'info' => 'Trying channel "zornk.ornk.org" over http:// instead',
128+
'cmd' => 'no command',
129+
),
130+
19 =>
100131
array (
101132
'info' => 'Update of Channel "zornk.ornk.org" succeeded',
102133
'cmd' => 'no command',

0 commit comments

Comments
 (0)