<commit_before><?php
namespace components;

use yii\codeception\TestCase;
use xifrin\SyncSocial\components\Synchronizer;

class SynchronizerTest extends TestCase
{
   /**
    * @var \UnitTester
    */
    protected $tester;

    protected function _before()
    {
    }

    protected function _after()
    {

    }

    // tests
    public function testSimple()
    {
        $settings = [
            'social_1' => [],
            'social_2' => [],
            'social_3' => [],
            'social_4' => [],
        ];

        $synchronizer = new Synchronizer( array(
            'settings' => $settings
        ) );

        $list = $synchronizer->getServiceList();
        $this->assertTrue(array_keys($settings) === $list);
    }

}<commit_msg>update unit tests<commit_after><?php
namespace unit\components;

use yii\codeception\TestCase;
use xifrin\SyncSocial\components\Synchronizer;

/**
 * Class SynchronizerTest
 * @package unit\components
 */
class SynchronizerTest extends TestCase {

    public function testEmptyConfiguration() {

        $this->setExpectedException( 'yii\base\Exception', 'Set model class to synchronization' );
        new Synchronizer();

        $this->setExpectedException( 'yii\base\Exception', 'Set model attribute to synchronization' );
        new Synchronizer( [
            'model' => '\fixtures\models\Record'
        ] );

        $this->assertTrue( true );
    }

}
{'fraction_non_alphanumeric': 0.12960339943342777, 'fraction_numerical': 0.0028328611898017, 'mean_word_length': 2.480295566502463, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 14, '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': '6949300', 'n_tokens_mistral': 415, 'n_tokens_neox': 403, 'n_words': 82}