2020final class FiniteRangeTest extends TestCase
2121{
2222 /**
23- * @var FiniteRange
23+ * @var FiniteState
2424 */
2525 private $ subject ;
2626
@@ -43,7 +43,7 @@ protected function setUp()
4343
4444 $ this ->yesterday = new DateTimeImmutable ('-1 day ' );
4545 $ this ->tomorrow = new DateTimeImmutable ('+1 day ' );
46- $ this ->subject = new FiniteRange ($ this ->yesterday , $ this ->tomorrow );
46+ $ this ->subject = new FiniteState ($ this ->yesterday , $ this ->tomorrow );
4747 }
4848
4949 /**
@@ -53,8 +53,8 @@ public function checkFiniteState()
5353 {
5454 self ::assertTrue ($ this ->subject ->hasStartDate ());
5555 self ::assertTrue ($ this ->subject ->hasEndDate ());
56- self ::assertInstanceOf (FiniteRange ::class, $ this ->subject ->setStartDate (new DateTimeImmutable ()));
57- self ::assertInstanceOf (FiniteRange ::class, $ this ->subject ->setEndDate (new DateTimeImmutable ()));
56+ self ::assertInstanceOf (FiniteState ::class, $ this ->subject ->setStartDate (new DateTimeImmutable ()));
57+ self ::assertInstanceOf (FiniteState ::class, $ this ->subject ->setEndDate (new DateTimeImmutable ()));
5858 self ::assertSame ($ this ->yesterday , $ this ->subject ->getStartDate ());
5959 self ::assertSame ($ this ->tomorrow , $ this ->subject ->getEndDate ());
6060 self ::assertSame (0 , $ this ->subject ->compareStartDate ($ this ->yesterday ));
@@ -73,7 +73,7 @@ public function guardRangeSequence()
7373 $ this ->expectException (DateRangeException::class);
7474 $ this ->expectExceptionMessage ('Invalid end date, must be after start ' );
7575
76- new FiniteRange ($ this ->tomorrow , $ this ->yesterday );
76+ new FiniteState ($ this ->tomorrow , $ this ->yesterday );
7777 }
7878
7979 /**
@@ -84,6 +84,6 @@ public function guardRangeDatesDifference()
8484 $ this ->expectException (DateRangeException::class);
8585 $ this ->expectExceptionMessage ('Invalid end date, must be after start ' );
8686
87- new FiniteRange ($ this ->tomorrow , $ this ->tomorrow );
87+ new FiniteState ($ this ->tomorrow , $ this ->tomorrow );
8888 }
8989}
0 commit comments