Exemplo n.º 1
0
 /**
  * @dataProvider provider_sampleToString
  */
 public function test_toString($m, $d, $expected)
 {
     $test = MonthDay::of($m, $d);
     $str = $test->__toString();
     $this->assertEquals($expected, $str);
 }
Exemplo n.º 2
0
 function data_atMonthDay()
 {
     return [[Year::of(2008), MonthDay::of(6, 30), LocalDate::of(2008, 6, 30)], [Year::of(2008), MonthDay::of(2, 29), LocalDate::of(2008, 2, 29)], [Year::of(2009), MonthDay::of(2, 29), LocalDate::of(2009, 2, 28)]];
 }