AlipayTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testSuccess() 0 7 1
1
<?php
2
3
namespace Yansongda\Pay\Tests\Gateways;
4
5
use Symfony\Component\HttpFoundation\Response;
6
use Yansongda\Pay\Pay;
7
use Yansongda\Pay\Tests\TestCase;
8
9
class AlipayTest extends TestCase
10
{
11
    public function testSuccess()
12
    {
13
        $success = Pay::alipay([])->success();
14
15
        $this->assertInstanceOf(Response::class, $success);
16
        $this->assertEquals('success', $success->getContent());
17
    }
18
}
19