Example #1
0
 /**
  * @covers Time_DateTime::as_rfc1123
  */
 public function testAs_rfc1123()
 {
     $d = '2011-09-11 12:10:11';
     $rfc1123 = 'Sun, 11 Sep 2011 12:10:11 +0400';
     $this->object = Time::DateTime($d);
     $this->assertEquals($rfc1123, $this->object->as_rfc1123());
 }