Completed
Push — develop ( fbdd82...317691 )
by Mike
09:29
created

RenderActionCompletedTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A itRegistersTheAssociatedAction() 0 8 1
1
<?php
2
/**
3
 * This file is part of phpDocumentor.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 *
8
 * @copyright 2010-2016 Mike van Riel<[email protected]>
9
 * @license   http://www.opensource.org/licenses/mit-license.php MIT
10
 * @link      http://phpdoc.org
11
 */
12
13
namespace phpDocumentor\DomainModel\Renderer;
14
15
use Mockery as m;
16
17
/**
18
 * @coversDefaultClass phpDocumentor\DomainModel\Renderer\RenderActionCompleted
19
 * @covers ::<private>
20
 */
21
final class RenderActionCompletedTest extends \PHPUnit_Framework_TestCase
22
{
23
    /**
24
     * @test
25
     * @covers ::__construct
26
     * @covers ::action
27
     */
28
    public function itRegistersTheAssociatedAction()
29
    {
30
        $action = m::mock(Template\Action::class);
31
32
        $event = new RenderActionCompleted($action);
33
34
        $this->assertSame($action, $event->action());
35
    }
36
}
37