Completed
Pull Request — master (#30)
by Matthew
48:21 queued 02:09
created

JobTimingManagerTest::testPruneJobTimings()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 12
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 12
rs 9.4285
cc 2
eloc 9
nc 2
nop 0
1
<?php
2
3
namespace Dtc\QueueBundle\Tests\Manager;
4
5
use Dtc\QueueBundle\Exception\UnsupportedException;
6
use Dtc\QueueBundle\Manager\JobTimingManager;
7
use PHPUnit\Framework\TestCase;
8
9
class JobTimingManagerTest extends TestCase
10
{
11
    public function testPruneJobTimings()
12
    {
13
        $jobTimingManager = new JobTimingManager('a', false);
14
        $failure = false;
15
        try {
16
            $jobTimingManager->pruneJobTimings(new \DateTime());
17
            $failure = true;
18
        } catch (UnsupportedException $exception) {
19
            self::assertNotNull($exception);
20
        }
21
        self::assertFalse($failure);
22
    }
23
}
24