Skip to content

Commit bcffcf5

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

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/PEAR_Command_Channels/channel-update/test_remotechannel.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ $reg = &$config->getRegistry();
1414
$c = $reg->getChannel(strtolower('pear.php.net'));
1515
$pathtochannelxml = dirname(__FILE__) . DIRECTORY_SEPARATOR .
1616
'files'. DIRECTORY_SEPARATOR . 'pearchannel.xml';
17-
$GLOBALS['pearweb']->addHtmlConfig('http://pear.php.net/channel.xml', $pathtochannelxml);
17+
$GLOBALS['pearweb']->addHtmlConfig('https://pear.php.net/channel.xml', $pathtochannelxml);
1818
$e = $command->run('channel-update', array(), array('pear.php.net'));
1919
$phpunit->assertNoErrors('after');
2020
$phpunit->assertEquals(array (

tests/PEAR_Command_Channels/channel-update/test_remotechannel_invalid.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ $reg = &$config->getRegistry();
1414
$c = $reg->getChannel(strtolower('pear.php.net'));
1515
$pathtochannelxml = dirname(__FILE__) . DIRECTORY_SEPARATOR .
1616
'files'. DIRECTORY_SEPARATOR . 'invalidchannel.xml';
17-
$GLOBALS['pearweb']->addHtmlConfig('http://pear.php.net/channel.xml', $pathtochannelxml);
17+
$GLOBALS['pearweb']->addHtmlConfig('https://pear.php.net/channel.xml', $pathtochannelxml);
1818
$e = $command->run('channel-update', array(), array('pear.php.net'));
1919
$phpunit->assertErrors(array(
2020
array('package' => 'PEAR_Error', 'message' =>

tests/PEAR_Command_Channels/channel-update/test_remotechannel_uptodate.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ $reg = &$config->getRegistry();
1414
$c = $reg->getChannel(strtolower('pear.php.net'));
1515
$pathtochannelxml = dirname(__FILE__) . DIRECTORY_SEPARATOR .
1616
'files'. DIRECTORY_SEPARATOR . 'pearchannel.xml';
17-
$GLOBALS['pearweb']->addHtmlConfig('http://pear.php.net/channel.xml', $pathtochannelxml);
17+
$GLOBALS['pearweb']->addHtmlConfig('https://pear.php.net/channel.xml', $pathtochannelxml);
1818
$return304 = true;
1919
$e = $command->run('channel-update', array(), array('pear.php.net'));
2020
unset($return304);

0 commit comments

Comments
 (0)