public function testUnshiftRetainAssocKeys() { $expected = ['bar', 'foo' => 5]; $xao = new XArray(['foo' => 5]); $xao->unshift('bar'); $this->assertEquals($expected, (array) $xao); }