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

StringTypedTest::scope()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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