Kraken\_Unit\Util\Support\ArraySupportTest::testApiGet_ReturnsElement_ForExistingKey_WhenKeyIsDottedAndSingleRealKey PHP Метод

testApiGet_ReturnsElement_ForExistingKey_WhenKeyIsDottedAndSingleRealKey() публичный Метод

    public function testApiGet_ReturnsElement_ForExistingKey_WhenKeyIsDottedAndSingleRealKey()
    {
        $support = $this->createArraySupportMock();
        $array = $this->getArray();
        $new = 'other';
        $this->assertSame($array['e']['a'], $support::get($array, 'e.a'));
        $support::set($array, 'e.a', 'other');
        $this->assertSame($new, $support::get($array, 'e.a'));
    }
ArraySupportTest