<commit_before><?php

require_once(TESTDIR . 'simpletest/autorun.php');
require_once(TESTDIR . '../SSI.php');

/**
 * TestCase class for manage posts settings
 */
class TestManagePostsSettings extends UnitTestCase
{
	/**
	 * Initialize or add whatever necessary for these tests
	 */
	function setUp()
	{
		//
	}

	/**
	 * Test the settings for admin search
	 */
	public function testSettings()
	{
		// trick
		loadLanguage('Admin');

		$controller = new ManagePosts_Controller();
		$settings = $controller->settings_search();

		// Lets see some hardcoded setting for posts management...<commit_msg>! convert ManagePostsSettingsTest.php to phpunit<commit_after><?php

/**
 * TestCase class for manage posts settings
 */
class TestManagePostsSettings extends PHPUnit_Framework_TestCase
{
	/**
	 * Initialize or add whatever necessary for these tests
	 */
	function setUp()
	{
		//
	}

	/**
	 * Test the settings for admin search
	 */
	public function testSettings()
	{
		// Trick
		loadLanguage('Admin');

		$controller = new ManagePosts_Controller();
		$settings = $controller->settings_search();

		// Lets see some hardcoded setting for posts management...
{'fraction_non_alphanumeric': 0.11744386873920552, 'fraction_numerical': 0.0, 'mean_word_length': 3.769547325102881, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5100045', 'n_tokens_mistral': 357, 'n_tokens_neox': 325, 'n_words': 97}