Completed
Pull Request — dev (#11)
by
unknown
04:51
created

DummyTestTask   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 2
c 3
b 0
f 0
lcom 1
cbo 1
dl 0
loc 15
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testMethod() 0 7 1
A throwsException() 0 4 1
1
<?php
2
3
namespace Vectorface\SnappyRouterTests\Task;
4
5
use \Exception;
6
use Vectorface\SnappyRouter\Task\AbstractTask;
7
8
class DummyTestTask extends AbstractTask
9
{
10
    public function testMethod()
11
    {
12
        $options = $this->getOptions();
13
        $this->set('taskOptions', $options);
14
        $this->set('response', 'Hello World');
15
        return $this->get('response');
16
    }
17
18
    public function throwsException()
19
    {
20
        throw new Exception('An exception was thrown.');
21
    }
22
}
23