Example #1
0
 /**
  * @param FieldFactory $fieldFactory
  */
 public function __construct(FieldFactory $fieldFactory)
 {
     parent::__construct($fieldFactory, self::POSITION);
 }
Example #2
0
 /**
  * 
  * Loops through the array of expected values for each selection for a field
  * and compares them to the values returned by the getBySelection method
  * 
  */
 public function loopSelection($items, Questionable $question)
 {
     foreach ($items as $key => $value) {
         $this->assertEquals($value, $question->getBySelection($key));
     }
 }