<commit_before><?php declare(strict_types=1);

/**
 * @license     http://opensource.org/licenses/mit-license.php MIT
 * @link        https://github.com/nicoSWD
 * @author      <NAME> <<EMAIL>>
 */
namespace nicoSWD\Rule\tests\integration;

use nicoSWD\Rule\Rule;
use stdClass;

final class ObjectTest extends AbstractTestBase
{
    /** @test */
    public function givenAnObjectHasMethodsWhenPublicTheyShouldBeAccessible()
    {
        $myObj = new class {
            public function test()
            {
                return 'test one two';
            }

            function test2()
            {
                return new class ()
                {
                    public function cat()
                    {
                        return 'meow';
                    }<commit_msg>Refactor<commit_after><?php declare(strict_types=1);

/**
 * @license     http://opensource.org/licenses/mit-license.php MIT
 * @link        https://github.com/nicoSWD
 * @author      <NAME> <<EMAIL>>
 */
namespace nicoSWD\Rule\tests\integration;

use nicoSWD\Rule\Rule;
use stdClass;

final class ObjectTest extends AbstractTestBase
{
    /** @test */
    public function givenAnObjectHasMethodsWhenPublicTheyShouldBeAccessible()
    {
        $myObj = new class {
            public function test()
            {
                return 'test one two';
            }

            public function test2()
            {
                return new class () {
                    public function cat()
                    {
                        return 'meow';
                    }
{'fraction_non_alphanumeric': 0.10152284263959391, 'fraction_numerical': 0.0025380710659898475, 'mean_word_length': 1.5353697749196142, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '105326', 'n_tokens_mistral': 422, 'n_tokens_neox': 407, 'n_words': 91}