コード例 #1
0
 /**
  * Tests whether setAll() works as expected.
  *
  * @return void
  */
 public function testSetAll()
 {
     $map = new OrderedMap();
     $map->addAll(array('foo' => 'bar', 2 => 'baz', '1', 1.0));
     $this->assertSame(array(0, 1, 2, 3), $map->getKeys());
     $this->assertSame(array('bar', 'baz', '1', 1.0), $map->getValues());
 }