Completed
Pull Request — master (#912)
by
unknown
07:49
created

StringTypedTest   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 scope() 0 7 1
1
<?php
2
/**
3
 * this file is part of magerun
4
 *
5
 * @author Tom Klingenberg <https://github.com/ktomk>
6
 */
7
8
namespace N98\Util;
9
10
use PHPUnit_Framework_TestCase as TestCase;
11
12
/**
13
 * Class StringTypedTest
14
 *
15
 * @package N98\Util
16
 * @covers N98\Util\StringTyped
17
 */
18
class StringTypedTest extends TestCase
19
{
20
    /**
21
     * @test
22
     */
23
    public function scope()
24
    {
25
        $this->assertSame(true, StringTyped::parseBoolOption("true"));
26
27
        $this->assertSame('inactive', StringTyped::formatActive(null));
28
        $this->assertSame('active', StringTyped::formatActive('1'));
29
    }
30
}
31