| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function includes_GivenDatesFromDataProvider_ShouldMatchExpectedValue($included, $excluded, $expected) |
||
| 29 | { |
||
| 30 | $anyDate = new DateTime(); |
||
| 31 | |||
| 32 | $includedExpr = $this->prophesize(TemporalExpressionInterface::class); |
||
| 33 | $includedExpr->includes($anyDate)->willReturn($included); |
||
| 34 | |||
| 35 | $excludedExpr = $this->prophesize(TemporalExpressionInterface::class); |
||
| 36 | $excludedExpr->includes($anyDate)->willReturn($excluded); |
||
| 37 | |||
| 38 | $expr = new Difference( |
||
| 39 | $includedExpr->reveal(), |
||
| 40 | $excludedExpr->reveal() |
||
| 41 | ); |
||
| 42 | |||
| 43 | $isIncluded = $expr->includes($anyDate); |
||
| 44 | |||
| 45 | $this->assertSame($expected, $isIncluded); |
||
| 46 | } |
||
| 48 |