Completed
Push — ezp-30616 ( 9239a0...7bf8e8 )
by
unknown
57:53 queued 37:56
created

SignalEventTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetSignal() 0 6 1
1
<?php
2
3
/**
4
 * File containing the SignalEventTest class.
5
 *
6
 * @copyright Copyright (C) eZ Systems AS. All rights reserved.
7
 * @license For full copyright and license information view LICENSE file distributed with this source code.
8
 */
9
namespace eZ\Publish\Core\MVC\Symfony\Event\Tests;
10
11
use eZ\Publish\Core\MVC\Symfony\Event\SignalEvent;
12
use eZ\Publish\Core\SignalSlot\Signal;
13
use PHPUnit\Framework\TestCase;
14
15
class SignalEventTest extends TestCase
16
{
17
    /**
18
     * @covers \eZ\Publish\Core\MVC\Symfony\Event\SignalEvent::__construct
19
     * @covers \eZ\Publish\Core\MVC\Symfony\Event\SignalEvent::getSignal
20
     */
21
    public function testGetSignal()
22
    {
23
        $signal = $this->createMock(Signal::class);
24
        $event = new SignalEvent($signal);
25
        $this->assertSame($signal, $event->getSignal());
26
    }
27
}
28