DeliveryReportCallbackEventTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A test__construct() 0 12 1
1
<?php
2
3
/*
4
 * This file is part of the smsmode-bundle package.
5
 *
6
 * (c) 2019 WEBEWEB
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace WBW\Bundle\SmsModeBundle\Tests\Event;
13
14
use WBW\Bundle\SmsModeBundle\Event\DeliveryReportCallbackEvent;
15
use WBW\Bundle\SmsModeBundle\Tests\AbstractTestCase;
16
use WBW\Library\SmsMode\Model\DeliveryReportCallback;
17
18
/**
19
 * Delivery report callback event test.
20
 *
21
 * @author webeweb <https://github.com/webeweb>
22
 * @package WBW\Bundle\SmsModeBundle\Tests\Event
23
 */
24
class DeliveryReportCallbackEventTest extends AbstractTestCase {
25
26
    /**
27
     * Test __construct()
28
     *
29
     * @return void
30
     */
31
    public function test__construct(): void {
32
33
        // Set a Delivery report callback mock.
34
        $deliveryReportCallback = new DeliveryReportCallback();
35
36
        $this->assertEquals("wbw.smsmode.event.delivery_report_callback", DeliveryReportCallbackEvent::EVENT_NAME);
37
38
        $obj = new DeliveryReportCallbackEvent($deliveryReportCallback);
39
40
        $this->assertEquals(DeliveryReportCallbackEvent::EVENT_NAME, $obj->getEventName());
41
42
        $this->assertSame($deliveryReportCallback, $obj->getDeliveryReportCallback());
43
    }
44
}
45