PaymentCreatedTest::testGetter()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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