<commit_before><?php

namespace ArrayHelpers;

use PHPUnit\Framework\TestCase;

class ArrayHasTest extends TestCase
{
    public function testWillReturnFalseIfNotAvailable()
    {
        $data = [];
        $key = 'foo';
        $this->assertFalse(
            Arr::has($data, $key)
        );
    }

    public function testWillReturnTrueIfAvailable()
    {
        $data = [
            'foo' => 'fighters',
            'bar' => 'tenders',
        ];
        $this->assertTrue(
            Arr::has($data, 'foo')
        );
    }

    public function testWillFindUsingDotNotation()
    {
        $data = [
            'i' => [
                "can't" => [
                    'get' => [
                        'no' => 'satisfaction',
                    ],
                ],
            ],
        ];
        $key = "i.can't.get.no";
        $this->assertTrue(
            Arr::has($data, $key)<commit_msg>Rename test method for clarity<commit_after><?php

namespace ArrayHelpers;

use PHPUnit\Framework\TestCase;

class ArrayHasTest extends TestCase
{
    public function testWillReturnFalseIfNotAvailable()
    {
        $data = [];
        $key = 'foo';
        $this->assertFalse(
            Arr::has($data, $key)
        );
    }

    public function testWillReturnTrueIfAvailable()
    {
        $data = [
            'foo' => 'fighters',
            'bar' => 'tenders',
        ];
        $this->assertTrue(
            Arr::has($data, 'foo')
        );
    }

    public function testWillReturnTrueIfFoundUsingDotNotation()
    {
        $data = [
            'i' => [
                "can't" => [
                    'get' => [
                        'no' => 'satisfaction',
                    ],
                ],
            ],
        ];
        $key = "i.can't.get.no";
        $this->assertTrue(
            Arr::has($data, $key)
{'fraction_non_alphanumeric': 0.14146868250539957, 'fraction_numerical': 0.0, 'mean_word_length': 1.3426042983565107, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, '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': '3063538', 'n_tokens_mistral': 541, 'n_tokens_neox': 525, 'n_words': 89}