/**
  * @dataProvider optionsProvider
  */
 public function testSetOptions($option, $getter, $value)
 {
     $this->getModel($this->validatorMock);
     $options = [$option => $value];
     $this->config->setOptions($options);
     $this->assertSame($value, $this->config->{$getter}());
 }
Ejemplo n.º 2
0
 /**
  * @dataProvider optionsProvider
  */
 public function testSetOptions($option, $getter, $value)
 {
     $options = [$option => $value];
     $this->_model->setOptions($options);
     $this->assertSame($value, $this->_model->{$getter}());
 }
Ejemplo n.º 3
0
 /**
  * @dataProvider optionsProvider
  */
 public function testSetOptionsTranslatesUnderscoreSeparatedKeys($option, $getter, $value)
 {
     $options = array($option => $value);
     $this->config->setOptions($options);
     $this->assertSame($value, $this->config->{$getter}());
 }