Passed
Pull Request — master (#156)
by Wilmer
02:29
created

ServiceProxyTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 5
dl 0
loc 12
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testServiceProxy() 0 4 1
A testServiceMethodProxy() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Yii\Debug\Tests\Collector;
6
7
use PHPUnit\Framework\TestCase;
8
use stdClass;
9
use Yiisoft\Yii\Debug\Collector\ContainerProxyConfig;
10
use Yiisoft\Yii\Debug\Collector\ServiceMethodProxy;
11
use Yiisoft\Yii\Debug\Collector\ServiceProxy;
12
13
final class ServiceProxyTest extends TestCase
14
{
15
    public function testServiceProxy(): void
16
    {
17
        $object = new ServiceProxy('test', new stdClass(), new ContainerProxyConfig());
18
        $this->assertIsObject($object);
19
    }
20
21
    public function testServiceMethodProxy(): void
22
    {
23
        $object = new ServiceMethodProxy('test', new stdClass(), ['__toString'], new ContainerProxyConfig());
24
        $this->assertIsObject($object);
25
    }
26
}
27