PaymentCreatedTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetter() 0 7 1
1
<?php
2
3
namespace Loevgaard\DandomainAltapayBundle\Tests\Event;
4
5
use Loevgaard\DandomainAltapayBundle\Entity\Payment;
6
use Loevgaard\DandomainAltapayBundle\Event\PaymentCreated;
7
use PHPUnit\Framework\TestCase;
8
9
final class PaymentCreatedTest extends TestCase
10
{
11
    public function testGetter()
12
    {
13
        $payment = new Payment();
14
        $event = new PaymentCreated($payment);
15
16
        $this->assertSame($payment, $event->getPayment());
17
    }
18
}
19