Completed
Push — master ( 463d73...47ba96 )
by Gerrit
02:04
created

LiteralArgumentTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A shouldResolveLiteral() 0 5 1
1
<?php
2
/**
3
 * Copyright (C) 2017  Gerrit Addiks.
4
 * This package (including this file) was released under the terms of the GPL-3.0.
5
 * You should have received a copy of the GNU General Public License along with this program.
6
 * If not, see <http://www.gnu.org/licenses/> or send me a mail so i can send you a copy.
7
 * @license GPL-3.0
8
 * @author Gerrit Addiks <[email protected]>
9
 */
10
11
namespace Addiks\SymfonyGenerics\Tests\Unit\Arguments;
12
13
use PHPUnit\Framework\TestCase;
14
use Addiks\SymfonyGenerics\Arguments\LiteralArgument;
15
16
final class LiteralArgumentTest extends TestCase
17
{
18
19
    /**
20
     * @test
21
     */
22
    public function shouldResolveLiteral()
23
    {
24
        $argument = new LiteralArgument("some-literal");
25
        $this->assertEquals("some-literal", $argument->resolve());
26
    }
27
28
}
29