コード例 #1
0
 protected function getWeekDays()
 {
     return ['Monday' => WeekDay::MONDAY(), 'Wednesday' => WeekDay::WEDNESDAY(), 'Friday' => WeekDay::FRIDAY(), 'Tuesday' => WeekDay::TUESDAY(), 'Thursday' => WeekDay::THURSDAY(), 'Saturday' => WeekDay::SATURDAY(), 'Sunday' => WeekDay::SUNDAY()];
 }
コード例 #2
0
ファイル: SortedSetTest.php プロジェクト: novuso/system
 protected function getWeekDays()
 {
     return [WeekDay::MONDAY(), WeekDay::WEDNESDAY(), WeekDay::FRIDAY(), WeekDay::TUESDAY(), WeekDay::THURSDAY(), WeekDay::SATURDAY(), WeekDay::SUNDAY()];
 }
コード例 #3
0
ファイル: EnumTest.php プロジェクト: novuso/system
 /**
  * @expectedException \AssertionError
  */
 public function test_that_compare_to_throws_exception_for_invalid_argument()
 {
     $weekDay1 = WeekDay::FRIDAY();
     $weekDay2 = WeekDay::SUNDAY;
     $weekDay1->compareTo($weekDay2);
 }