Ejemplo n.º 1
0
 /**
  * Testing the getUSValue method for converting to European date format.
  *
  * @since 1.2.1
  */
 public function testGetUSValue()
 {
     $this->assertEquals(date('m/d/y'), $this->date1->getUSValue(), 'testing the getUSValue method for converting to US date format');
 }
Ejemplo n.º 2
0
 /**
  * Testing the getUnixValue() method.
  *
  * @since 1.2.1
  */
 public function testGetUnixValue()
 {
     $date = new Date('2012-12-10');
     $this->assertEquals('1355097600', $date->getUnixValue(), 'testing the getUnixValue() method');
 }