<commit_before><?php
/**
 * ConfTest4getIni
 *
 * Conf::getIni用テストケース
 *
 * @package           risoluto
 * @author            Risoluto Developers
 * @license           http://opensource.org/licenses/bsd-license.php new BSD license
 * @copyright     (C) 2008-2015 Risoluto Developers / All Rights Reserved.
 */
//------------------------------------------------------//
// 名前空間の定義
//------------------------------------------------------//
namespace Risoluto;

//------------------------------------------------------//
// テストクラス定義
//------------------------------------------------------//
class ConfTest4getIni extends \PHPUnit_Framework_TestCase
{
    //------------------------------------------------------//
    // テストメソッド定義
    //------------------------------------------------------//
    /**
     * setUp()
     *
     * テストに必要な準備を実施
     */
    protected function setUp()
    {
    }

    /**
     * test_getIni_Beforeparsed()
     *
     * 未パース時のgetIni()の挙動をテストする
     */
    public function test_getIni_Beforeparsed()
    {
        $instance = new Conf;
        $this->assertNull( $instance->getIni() );
        unset( $instance );
    }

    /**
     * test_getIni_NoArgs()
     *
     * パース後のgetIni()の挙動をテストする（引数なし）
     */
    public function test_getIni_NoArgs()
    {
        $want = [
            "SEQ" => [
                "default" => "RisolutoApps\\Pages\\View",
                "error" => "RisolutoApps\\Error",
                "servicestop" => "RisolutoApps\\ServiceStop"
            ],
            "LOGGING" => [
                "loglevel" => "warn"
            ],
            "SESSION" => [
                "timeout" => 3600
            ],
            "LIMITS" => [
                "max_loadavg" => 3
            ],
            "THEME" => [
                "outboards" => "vendor"
            ],
            "AUTH" => [
                "provider" => "Risoluto\\AuthDb",
                "users" => "risoluto_users",
                "groups" => "risoluto_groups"
            ],
        ];

        $instance = new Conf;<commit_msg>Fix test case<commit_after><?php
/**
 * ConfTest4getIni
 *
 * Conf::getIni用テストケース
 *
 * @package           risoluto
 * @author            Risoluto Developers
 * @license           http://opensource.org/licenses/bsd-license.php new BSD license
 * @copyright     (C) 2008-2015 Risoluto Developers / All Rights Reserved.
 */
//------------------------------------------------------//
// 名前空間の定義
//------------------------------------------------------//
namespace Risoluto;

//------------------------------------------------------//
// テストクラス定義
//------------------------------------------------------//
class ConfTest4getIni extends \PHPUnit_Framework_TestCase
{
    //------------------------------------------------------//
    // テストメソッド定義
    //------------------------------------------------------//
    /**
     * setUp()
     *
     * テストに必要な準備を実施
     */
    protected function setUp()
    {
    }

    /**
     * test_getIni_Beforeparsed()
     *
     * 未パース時のgetIni()の挙動をテストする
     */
    public function test_getIni_Beforeparsed()
    {
        $instance = new Conf;
        $this->assertNull( $instance->getIni() );
        unset( $instance );
    }

    /**
     * test_getIni_NoArgs()
     *
     * パース後のgetIni()の挙動をテストする（引数なし）
     */
    public function test_getIni_NoArgs()
    {
        $want = [
            "SEQ" => [
                "default" => "RisolutoApps\\Pages\\View",
                "error" => "RisolutoApps\\Error",
                "servicestop" => "RisolutoApps\\ServiceStop"
            ],
            "LOGGING" => [
                "loglevel" => "warn"
            ],
            "SESSION" => [
                "timeout" => 86400
            ],
            "LIMITS" => [
                "max_loadavg" => 3
            ],
            "THEME" => [
                "outboards" => "vendor"
            ],
            "AUTH" => [
                "provider" => "Risoluto\\AuthDb",
                "users" => "risoluto_users",
                "groups" => "risoluto_groups"
            ],
        ];

        $instance = new Conf;
{'fraction_non_alphanumeric': 0.2818203942565101, 'fraction_numerical': 0.007544414699440253, 'mean_word_length': 0.9395941481831053, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 39, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '677147', 'n_tokens_mistral': 1268, 'n_tokens_neox': 1210, 'n_words': 165}