public function testMultipleArrayUpdate() { $t = new NativeArray(); $this->assertSame($t->testMultipleArrayUpdate1(), array('x' => array('y' => null))); $this->assertSame($t->testMultipleArrayUpdate2(), array('x' => array('y' => array('z' => null)))); $this->assertSame($t->testMultipleArrayUpdate3(), array(0 => array(1 => null))); $this->assertSame($t->testMultipleArrayUpdate4(), array(0 => array(1 => array(2 => null)))); $this->assertSame($t->testMultipleArrayUpdate5(), array('a' => array(1 => array('c' => null)))); $this->assertSame($t->testMultipleArrayUpdate6(), array(0 => array('b' => array(2 => null)))); $this->assertSame($t->testMultipleArrayUpdate7(), array('a' => array(1 => array('c' => true)), 0 => array('b' => array(2 => false)))); $this->assertSame($t->testMultipleArrayUpdate8(), array('a' => array(0 => null, 1 => true, 2 => false))); $this->assertSame($t->testMultipleArrayUpdate9(), array('a' => array(0 => null, 1 => false))); $this->assertSame($t->testMultipleArrayUpdate10(), array('a' => array(0 => null, 1 => array('c' => false)))); $this->assertSame($t->testMultipleArrayUpdate11(), array('y' => array('x' => null))); $this->assertSame($t->testMultipleArrayUpdate12(), array('y' => array('x' => array('z' => null)))); }