Ejemplo n.º 1
0
 public function test_can_change_expiration_to_null_value()
 {
     $Pub = new DateRange(new \DateTimeImmutable(), new \DateTimeImmutable('+2 day'));
     $NewPub = $Pub->changeExpiration();
     $this->assertInstanceOf('\\Milhojas\\Library\\ValueObjects\\Dates\\DateRange', $NewPub);
     $Expected = new DateRange(new \DateTimeImmutable());
     $this->assertEquals($Expected, $NewPub);
 }