Kraken\_Unit\Util\Support\ArraySupportTest::testApiSet_SetsValue_ForExistingKey PHP Method

testApiSet_SetsValue_ForExistingKey() public method

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