コード例 #1
0
ファイル: DayOfMonth.php プロジェクト: int3rlop3r/phron
 /**
  * @param FieldFactory $fieldFactory
  */
 public function __construct(FieldFactory $fieldFactory)
 {
     parent::__construct($fieldFactory, self::POSITION);
 }
コード例 #2
0
ファイル: QuestionsTest.php プロジェクト: int3rlop3r/phron
 /**
  * 
  * 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));
     }
 }