Passed
Push — master ( 100885...089bea )
by Ilham
01:55
created

ApplicationTest::testInstances()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 5
nc 1
nop 0
dl 0
loc 9
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * This file is part of the dingtalk.
4
 * User: Ilham Tahir <[email protected]>
5
 * This source file is subject to the MIT license that is bundled
6
 * with this source code in the file LICENSE.
7
 */
8
9
namespace Aplisin\DingTalk\Tests;
10
11
use Aplisin\DingTalk\Application;
12
use Aplisin\DingTalk\Auth\AccessToken;
13
14
class ApplicationTest extends BaseCase
15
{
16
    public function testInstances()
17
    {
18
        $app = new Application([
19
            'corp_id' => 'xwnaka223',
20
            'agent_id' => 102093,
21
            'secret' => 'secret',
22
        ]);
23
24
        $this->assertInstanceOf(AccessToken::class, $app->access_token);
25
    }
26
}