/** * @param FieldFactory $fieldFactory */ public function __construct(FieldFactory $fieldFactory) { parent::__construct($fieldFactory, self::POSITION); }
/** * * 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)); } }