Completed
Push — master ( 18bc97...e7bdcd )
by Yaroslav
09:10
created

SensioExtraTestTest::testMetadata()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 11
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\SensioExtraTest;
15
16
/**
17
 * @author Yaroslav Honcharuk <[email protected]>
18
 */
19
class SensioExtraTestTest extends TestCase
20
{
21
    public function testMetadata()
22
    {
23
        $test = new SensioExtraTest([]);
24
25
        $self = $test->setMetadata('foo', 5);
26
27
        $this->assertSame($test, $self);
28
29
        $this->assertSame(5, $test->getMetadata('foo'));
30
31
        $this->assertNull($test->getMetadata('bar'));
32
    }
33
}
34