/**
  * {@inheritdoc}
  *
  * @deprecated Deprecated since version 2.4, to be removed in 3.0.
  */
 public function getIndicesForValues(array $values)
 {
     if (!$this->choiceList) {
         $this->load();
     }
     return $this->choiceList->getIndicesForValues($values);
 }
Exemple #2
0
 /**
  * {@inheritdoc}
  *
  * @deprecated since version 2.4, to be removed in 3.0.
  */
 public function getIndicesForValues(array $values)
 {
     trigger_error('The ' . __METHOD__ . ' method is deprecated since version 2.4 and will be removed in 3.0.', E_USER_DEPRECATED);
     if (!$this->choiceList) {
         $this->load();
     }
     return $this->choiceList->getIndicesForValues($values);
 }
 public function testGetIndicesForValuesEmpty()
 {
     $this->assertSame(array(), $this->list->getIndicesForValues(array()));
 }
 public function testLegacyGetIndicesForValuesEmpty()
 {
     $this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
     $this->assertSame(array(), $this->list->getIndicesForValues(array()));
 }