| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 26 | 1 | public function testEquals(): void |
|
| 27 | { |
||
| 28 | 1 | $sameDate = Date::fromNative(self::DATE); |
|
| 29 | 1 | $this->assertTrue($this->date->equals($sameDate)); |
|
| 30 | 1 | $sameDateOtherFormat = Date::fromString('2016-07-04T19:27:07', 'Y-m-d\\TH:i:s'); |
|
| 31 | 1 | $this->assertTrue($this->date->equals($sameDateOtherFormat)); |
|
| 32 | 1 | $differentDate = Date::fromNative('2017-08-10'); |
|
| 33 | 1 | $this->assertFalse($this->date->equals($differentDate)); |
|
| 34 | 1 | } |
|
| 47 |