| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function includes_GivenDatesFromDataProvider_ShouldMatchExpectedValue($first, $second, $expected) |
||
| 29 | { |
||
| 30 | $anyDate = new DateTime(); |
||
| 31 | |||
| 32 | $expr = new Union(); |
||
| 33 | |||
| 34 | $firstExpr = $this->prophesize(TemporalExpressionInterface::class); |
||
| 35 | $firstExpr->includes($anyDate)->willReturn($first); |
||
| 36 | $expr->addElement($firstExpr->reveal()); |
||
| 37 | |||
| 38 | $secondExpr = $this->prophesize(TemporalExpressionInterface::class); |
||
| 39 | $secondExpr->includes($anyDate)->willReturn($second); |
||
| 40 | $expr->addElement($secondExpr->reveal()); |
||
| 41 | |||
| 42 | $isIncluded = $expr->includes($anyDate); |
||
| 43 | |||
| 44 | $this->assertSame($expected, $isIncluded); |
||
| 45 | } |
||
| 47 |