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

ServiceProxyTest::testServiceProxy()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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