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

DummyTestTask::testMethod()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
c 3
b 0
f 0
dl 0
loc 7
rs 9.4285
cc 1
eloc 5
nc 1
nop 0
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