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

SensioExtraTestTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testMetadata() 0 11 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\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