Exemplo n.º 1
0
 public function testGetValue()
 {
     $this->assertEquals(time() - strtotime('today'), Time::now()->getValue());
     $this->assertNotEquals(1, Time::now()->getValue());
 }
Exemplo n.º 2
0
 /**
  * @return DateTime
  */
 public static function now()
 {
     return new self(Date::now(), Time::now());
 }