/**
  * Tests whether removeByValue() removed all elements with the given value.
  *
  * @return void
  */
 public function testRemoveByValueRemovesAllMatchingElements()
 {
     $map = new OrderedMap(array('foo' => 'bar', 'bar' => 'bar', 'baz' => 'bar', 'foobar' => 'foobarbaz'));
     $this->assertSame(array('foo' => 'bar', 'bar' => 'bar', 'baz' => 'bar', 'foobar' => 'foobarbaz'), $map->toArray());
     $map->removeByValue('bar');
     $this->assertSame(array('foobar' => 'foobarbaz'), $map->toArray());
 }