TestBagTest::testGetTests()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

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