TestBagTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 6
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetTests() 0 10 1
1
<?php
2
3
/*
4
 *
5
 * (c) Yaroslav Honcharuk <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Yarhon\RouteGuardBundle\Tests\Security\Test;
12
13
use PHPUnit\Framework\TestCase;
14
use Yarhon\RouteGuardBundle\Security\Test\TestBag;
15
use Yarhon\RouteGuardBundle\Security\Test\TestInterface;
16
17
/**
18
 * @author Yaroslav Honcharuk <[email protected]>
19
 */
20
class TestBagTest extends TestCase
21
{
22
    public function testGetTests()
23
    {
24
        $tests = [
25
            $this->createMock(TestInterface::class),
26
            $this->createMock(TestInterface::class),
27
        ];
28
29
        $testBag = new TestBag($tests);
30
31
        $this->assertSame($tests, $testBag->getTests());
32
    }
33
}
34