<commit_before><commit_msg>new test<commit_after>--TEST--
config-set command
--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';
$phpunit->assertEquals($temp_path . DIRECTORY_SEPARATOR . 'php', $config->get('php_dir'), 'setup');
$command->run('config-set', array(), array('php_dir', 'poo'));
$phpunit->assertNoErrors('after');
$phpunit->assertEquals(array (
  0 => 
  array (
    'info' => 'config-set succeeded',
    'cmd' => 'config-set',
  ),
), $fakelog->getLog(), 'ui log');
$phpunit->assertEquals('poo', $config->get('php_dir'), 'php_dir');
$phpunit->assertEquals(null, $config->get('php_dir', 'system'), 'setup system');
$command->run('config-set', array(), array('php_dir', 'poo', 'system'));
$phpunit->assertNoErrors('after');
$phpunit->assertEquals(array (
  0 => 
  array (
    'info' => 'config-set succeeded',
    'cmd' => 'config-set',
  ),
), $fakelog->getLog(), 'ui log');
$phpunit->assertEquals('poo', $config->get('php_dir', 'system'), 'php_dir');
echo 'tests done';
?>
--EXPECT--
tests done

{'fraction_non_alphanumeric': 0.24111014744145706, 'fraction_numerical': 0.0017346053772766695, 'mean_word_length': 5.594285714285714, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 27, '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': '3426065', 'n_tokens_mistral': 418, 'n_tokens_neox': 413, 'n_words': 73}