AlipayTest::testSuccess()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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