<commit_before>--TEST--
config-set command failure
--SKIPIF--
<?php
if (!getenv('PHP_PEAR_RUNTESTS')) {
    echo 'skip';
}
?>
--FILE--
<?php
error_reporting(E_ALL);
require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'setup.php.inc';
$e = $command->run('config-set', array(), array());
$phpunit->assertErrors(array(
    array('package' => 'PEAR_Error', 'message' => 'config-set expects 2 or 3 parameters'),
), 'no params');
$e = $command->run('config-set', array(), array('default_channel'));
$phpunit->assertErrors(array(
    array('package' => 'PEAR_Error', 'message' => 'config-set expects 2 or 3 parameters'),
), '1 params');
$e = $command->run('config-set', array(), array('default_channel', 'pear', 'gronk'));
$phpunit->assertErrors(array(
    array('package' => 'PEAR_Error', 'message' => 'config-set: only the layers: "user" or "system" are supported'),
), 'unknown layer');
$e = $command->run('config-set', array(), array('default_channel', 'gronk'));
$phpunit->assertErrors(array(
    array('package' => 'PEAR_Error', 'message' => 'Channel "gronk" does not exist'),
), 'unknown channel');
$e = $command->run('config-set', array('channel' => 'gronk'), array('php_dir', 'gronk'));
$phpunit->assertErrors(array(
    array('package' => 'PEAR_Error', 'message' => 'Channel "gronk" does not exist'),
), 'unknown channel as option');
$e = $command->run('config-set', array(), array('__channels', 'gronk'));
$phpunit->assertErrors(array(
    array('package' => 'PEAR_Error', 'message' => 'config-set (__channels, gronk) failed, channel pear.php.net'),
), 'unknown channel as option');
echo 'tests done';
?>
--EXPECT--
tests done<commit_msg>fix test<commit_after>--TEST--
config-set command failure
--SKIPIF--
<?php
if (!getenv('PHP_PEAR_RUNTESTS')) {
    echo 'skip';
}
?>
--FILE--
<?php
error_reporting(E_ALL);
require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'setup.php.inc';
$e = $command->run('config-set', array(), array());
$phpunit->assertErrors(array(
    array('package' => 'PEAR_Error', 'message' => 'config-set expects 2 or 3 parameters'),
), 'no params');
$e = $command->run('config-set', array(), array('default_channel'));
$phpunit->assertErrors(array(
    array('package' => 'PEAR_Error', 'message' => 'config-set expects 2 or 3 parameters'),
), '1 params');
$e = $command->run('config-set', array(), array('default_channel', 'pear', 'gronk'));
$phpunit->assertErrors(array(
    array('package' => 'PEAR_Error', 'message' => 'config-set: only the layers: "user" or "system" are supported'),
), 'unknown layer');
$e = $command->run('config-set', array(), array('default_channel', 'gronk'));
$phpunit->assertErrors(array(
    array('package' => 'PEAR_Error', 'message' => 'Channel "gronk" does not exist'),
), 'unknown channel');
$e = $command->run('config-set', array('channel' => 'gronk'), array('php_dir', 'gronk'));
$phpunit->assertErrors(array(
    array('package' => 'PEAR_Error', 'message' => 'Channel "gronk" does not exist'),
), 'unknown channel as option');
$e = $command->run('config-set', array(), array('__channels', 'gronk'));
$phpunit->assertErrors(array(
    array('package' => 'PEAR_Error', 'message' => 'config-set (__channels, gronk, user) failed, channel pear.php.net'),
), 'unknown channel as option');
echo 'tests done';
?>
--EXPECT--
tests done
{'fraction_non_alphanumeric': 0.22514354789966756, 'fraction_numerical': 0.0030220610456331218, 'mean_word_length': 6.0575692963752665, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 57, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3221280', 'n_tokens_mistral': 1108, 'n_tokens_neox': 1097, 'n_words': 261}