Completed
Pull Request — master (#20)
by Wachter
25:54 queued 02:00
created

FailTestHandler   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of php-task library.
5
 *
6
 * (c) php-task
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
namespace Task\TaskBundle\Tests\Functional;
13
14
use Task\Handler\TaskHandlerInterface;
15
16
/**
17
 * This handler is used for testing purpose and it fails with a simple Exception.
18
 */
19
class FailTestHandler implements TaskHandlerInterface
20
{
21
    /**
22
     * {@inheritdoc}
23
     */
24
    public function handle($workload)
25
    {
26
        throw new \Exception();
27
    }
28
}
29