BaoKimBankWidgetTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 3
dl 0
loc 19
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A gatewayId() 0 4 1
A testBankLogo() 0 6 1
1
<?php
2
/**
3
 * @link https://github.com/yiiviet/yii2-payment
4
 * @copyright Copyright (c) 2017 Yii Viet
5
 * @license [New BSD License](http://www.opensource.org/licenses/bsd-license.php)
6
 */
7
8
9
namespace yiiviet\tests\unit\payment;
10
11
/**
12
 * Lớp BaoKimBankWidgetTest
13
 *
14
 * @author Vuong Minh <[email protected]>
15
 * @since 1.0.3
16
 */
17
class BaoKimBankWidgetTest extends BankWidgetTest
18
{
19
    /**
20
     * @var \yiiviet\payment\baokim\PaymentGateway
21
     */
22
    public $gateway;
23
24
    public static function gatewayId(): string
25
    {
26
        return 'BK';
27
    }
28
29
    public function testBankLogo()
30
    {
31
        $widget = $this->createWidget();
32
33
        $this->assertNotEmpty($widget->provider->getBankLogo(67));
34
    }
35
}
36