Exemple #1
0
 private function wrapInnerField()
 {
     $rendered = $this->innerField->render();
     $rendered = preg_replace('#<label.+</label>#', '', $rendered);
     $rendered = str_replace('id="' . $this->innerField->getName() . '"', '', $rendered);
     $rendered = str_replace("[" . $this->innerField->getName() . "]", "[{$this->getName()}][]", $rendered);
     return $rendered;
 }
Exemple #2
0
 public function thenItShouldAdd_ToTheFoot($values)
 {
     $this->spec->assertEquals($values, $this->field->addToFoot());
 }