<commit_before><?php
namespace Czim\CmsModels\Test\Support\Strategies\Traits;

use Czim\CmsModels\Test\AbstractPostCommentSeededTestCase;
use Czim\CmsModels\Test\Helpers\Models\TestPost;
use Czim\CmsModels\Test\Helpers\Support\SourceMethodTestHelper;
use Czim\CmsModels\Test\Helpers\Support\UsesResolvesSourceStrategies;

class ResolvesSourceStrategiesTest extends AbstractPostCommentSeededTestCase
{

    /**
     * @test
     */
    function it_resolves_a_direct_attribute()
    {
        $instance = new UsesResolvesSourceStrategies;

        $model = new TestPost([
            'type' => 'test type',
        ]);<commit_msg>Set @group for strategies-related test<commit_after><?php
namespace Czim\CmsModels\Test\Support\Strategies\Traits;

use Czim\CmsModels\Test\AbstractPostCommentSeededTestCase;
use Czim\CmsModels\Test\Helpers\Models\TestPost;
use Czim\CmsModels\Test\Helpers\Support\SourceMethodTestHelper;
use Czim\CmsModels\Test\Helpers\Support\UsesResolvesSourceStrategies;

/**
 * Class ResolvesSourceStrategiesTest
 *
 * @group support
 * @group support-strategies
 */
class ResolvesSourceStrategiesTest extends AbstractPostCommentSeededTestCase
{

    /**
     * @test
     */
    function it_resolves_a_direct_attribute()
    {
        $instance = new UsesResolvesSourceStrategies;

        $model = new TestPost([
            'type' => 'test type',
        ]);
{'fraction_non_alphanumeric': 0.09876543209876543, 'fraction_numerical': 0.0, 'mean_word_length': 4.103703703703704, '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': '5043859', 'n_tokens_mistral': 434, 'n_tokens_neox': 443, 'n_words': 64}