@@ -43,78 +43,78 @@ public function test_calculate_diff_between_present_and_past_date_in_hours() : v
4343 $ diff = new Difference (new \DateTime ('2014-04-26 13:00:00 ' ), new \DateTime ('2014-04-26 11:00:00 ' ));
4444 $ this ->assertInstanceOf (Hour::class, $ diff ->getUnit ());
4545 $ this ->assertSame (2 , $ diff ->getQuantity ());
46- $ this ->assertSame ( true , $ diff ->isPast ());
46+ $ this ->assertTrue ( $ diff ->isPast ());
4747 }
4848
4949 public function test_calculate_diff_between_present_and_future_date_in_hours () : void
5050 {
5151 $ diff = new Difference (new \DateTime ('2014-04-26 13:00:00 ' ), new \DateTime ('2014-04-26 16:00:00 ' ));
5252 $ this ->assertInstanceOf (Hour::class, $ diff ->getUnit ());
5353 $ this ->assertSame (3 , $ diff ->getQuantity ());
54- $ this ->assertSame ( false , $ diff ->isPast ());
54+ $ this ->assertFalse ( $ diff ->isPast ());
5555 }
5656
5757 public function test_calculate_diff_between_present_and_past_date_in_days () : void
5858 {
5959 $ diff = new Difference (new \DateTime ('2014-04-10 ' ), new \DateTime ('2014-04-09 ' ));
6060 $ this ->assertInstanceOf (Day::class, $ diff ->getUnit ());
6161 $ this ->assertSame (1 , $ diff ->getQuantity ());
62- $ this ->assertSame ( true , $ diff ->isPast ());
62+ $ this ->assertTrue ( $ diff ->isPast ());
6363 }
6464
6565 public function test_calculate_diff_between_present_and_future_date_in_days () : void
6666 {
6767 $ diff = new Difference (new \DateTime ('2014-04-10 ' ), new \DateTime ('2014-04-11 ' ));
6868 $ this ->assertInstanceOf (Day::class, $ diff ->getUnit ());
6969 $ this ->assertSame (1 , $ diff ->getQuantity ());
70- $ this ->assertSame ( false , $ diff ->isPast ());
70+ $ this ->assertFalse ( $ diff ->isPast ());
7171 }
7272
7373 public function test_calculate_diff_between_present_and_past_date_in_weeks () : void
7474 {
7575 $ diff = new Difference (new \DateTime ('2014-04-15 ' ), new \DateTime ('2014-04-01 ' ));
7676 $ this ->assertInstanceOf (Week::class, $ diff ->getUnit ());
7777 $ this ->assertSame (2 , $ diff ->getQuantity ());
78- $ this ->assertSame ( true , $ diff ->isPast ());
78+ $ this ->assertTrue ( $ diff ->isPast ());
7979 }
8080
8181 public function test_calculate_diff_between_present_and_future_date_in_weeks () : void
8282 {
8383 $ diff = new Difference (new \DateTime ('2014-04-01 ' ), new \DateTime ('2014-04-15 ' ));
8484 $ this ->assertInstanceOf (Week::class, $ diff ->getUnit ());
8585 $ this ->assertSame (2 , $ diff ->getQuantity ());
86- $ this ->assertSame ( false , $ diff ->isPast ());
86+ $ this ->assertFalse ( $ diff ->isPast ());
8787 }
8888
8989 public function test_calculate_diff_between_present_and_past_date_in_months () : void
9090 {
9191 $ diff = new Difference (new \DateTime ('2014-04-01 ' ), new \DateTime ('2014-03-01 ' ));
9292 $ this ->assertInstanceOf (Month::class, $ diff ->getUnit ());
9393 $ this ->assertSame (1 , $ diff ->getQuantity ());
94- $ this ->assertSame ( true , $ diff ->isPast ());
94+ $ this ->assertTrue ( $ diff ->isPast ());
9595 }
9696
9797 public function test_calculate_diff_between_present_and_future_date_in_months () : void
9898 {
9999 $ diff = new Difference (new \DateTime ('2014-04-01 ' ), new \DateTime ('2014-05-01 ' ));
100100 $ this ->assertInstanceOf (Month::class, $ diff ->getUnit ());
101101 $ this ->assertSame (1 , $ diff ->getQuantity ());
102- $ this ->assertSame ( false , $ diff ->isPast ());
102+ $ this ->assertFalse ( $ diff ->isPast ());
103103 }
104104
105105 public function test_calculate_diff_between_present_and_past_date_in_years () : void
106106 {
107107 $ diff = new Difference (new \DateTime ('2014-01-01 ' ), new \DateTime ('2012-01-01 ' ));
108108 $ this ->assertInstanceOf (Year::class, $ diff ->getUnit ());
109109 $ this ->assertSame (2 , $ diff ->getQuantity ());
110- $ this ->assertSame ( true , $ diff ->isPast ());
110+ $ this ->assertTrue ( $ diff ->isPast ());
111111 }
112112
113113 public function test_calculate_diff_between_present_and_future_date_in_years () : void
114114 {
115115 $ diff = new Difference (new \DateTime ('2014-01-01 ' ), new \DateTime ('2015-01-01 ' ));
116116 $ this ->assertInstanceOf (Year::class, $ diff ->getUnit ());
117117 $ this ->assertSame (1 , $ diff ->getQuantity ());
118- $ this ->assertSame ( false , $ diff ->isPast ());
118+ $ this ->assertFalse ( $ diff ->isPast ());
119119 }
120120}
0 commit comments