Passed
Branch master (73f5a3)
by Toni
02:45
created

EachDayTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A includes_GivenAnyDate_ShouldReturnTrue() 0 9 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Adlogix\EventSchedulerTest\TemporalExpression;
6
7
use PHPUnit\Framework\TestCase;
8
use Adlogix\EventScheduler\TemporalExpression\EachDay;
9
10
class EachDayTest extends TestCase
11
{
12
    /**
13
     * @test
14
     */
15
    public function includes_GivenAnyDate_ShouldReturnTrue()
16
    {
17
        /** @var \DateTimeInterface $date */
18
        $date = $this->createMock(\DateTime::class);
19
        $expr = new EachDay();
20
21
        $isIncluded = $expr->includes($date);
22
23
        $this->assertThat($isIncluded, $this->isTrue());
24
    }
25
}
26