<commit_before><?php
{% set classdir  = file.dirname|replace({'tests/unit':'', '/':'\\'}) %}
{% set classname = file.filename[:-4] %}
{% set classpath = classdir ~ '\\' ~ classname %}
{% set classfull = config.package.namespace ~ '\\' ~ classpath %}

namespace {{ config.package.namespace }}\{{ file.dirname|replace({'/':'\\'}) }};

use Yii;
use {{ classfull|replace({'\\\\': '\\'}) }};

class {{ classname }}Test extends \PHPUnit_Framework_TestCase
{
    public $sample;

    protected function setUp()
    {
        $this->sample = Yii::createObject([
            'class' => {{ classname }}::className(),
        ],['c', null]);
    }

    protected function tearDown()
    {
        $this->sample = null;
    }

    public function testConstruct()
    {
        $this->assertNotNull($this->sample);
    }
}<commit_msg>* default createObject without params<commit_after><?php
{% set classdir  = file.dirname|replace({'tests/unit':'', '/':'\\'}) %}
{% set classname = file.filename[:-4] %}
{% set classpath = classdir ~ '\\' ~ classname %}
{% set classfull = config.package.namespace ~ '\\' ~ classpath %}

namespace {{ config.package.namespace }}\{{ file.dirname|replace({'/':'\\'}) }};

use Yii;
use {{ classfull|replace({'\\\\': '\\'}) }};

class {{ classname }}Test extends \PHPUnit_Framework_TestCase
{
    public $sample;

    protected function setUp()
    {
        $this->sample = Yii::createObject([
            'class' => {{ classname }}::className(),
        ]);
    }

    protected function tearDown()
    {
        $this->sample = null;
    }

    public function testConstruct()
    {
        $this->assertNotNull($this->sample);
    }
}
{'fraction_non_alphanumeric': 0.21221281741233375, 'fraction_numerical': 0.0012091898428053204, 'mean_word_length': 2.95933014354067, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '1672933', 'n_tokens_mistral': 535, 'n_tokens_neox': 503, 'n_words': 98}