Completed
Push — master ( 6b4d01...deddd6 )
by Daniel
03:16
created

DefaultRpcControllerTest::testWhoAction()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 8
rs 9.4285
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
3
namespace Application\Tests\Infrastructure\Controller;
4
5
use Application\Infrastructure\Controller\DefaultRpcController;
6
use Application\Tests\BaseTestCase;
7
8
class DefaultRpcControllerTest extends BaseTestCase
9
{
10
    public function testWhoAction()
11
    {
12
        $controller = new DefaultRpcController();
13
        $controller->setContainer($this->getContainer());
14
        $who = $controller->whoAction();
15
16
        $this->assertEquals('Daniel Oliveira <[email protected]>', $who['name']);
17
    }
18
}