Test Failed
Branch master (9acec7)
by Agel_Nash
02:58
created

toOctTest   A

Complexity

Total Complexity 13

Size/Duplication

Total Lines 67
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 13
c 0
b 0
f 0
dl 0
loc 67
rs 10

13 Methods

Rating   Name   Duplication   Size   Complexity  
A test10StringTo8Success644() 0 3 1
A test10to8Error400() 0 3 1
A test8to8Success755() 0 3 1
A setUp() 0 3 1
A test10to8Error755() 0 3 1
A test10to8Error644() 0 3 1
A test8StringTo8Success400() 0 3 1
A test10StringTo8Success755() 0 3 1
A test8to8Success644() 0 3 1
A test8StringTo8Success755() 0 3 1
A test10StringTo8Success400() 0 3 1
A test8to8Success400() 0 3 1
A test8StringTo8Success644() 0 3 1
1
<?php namespace DocLister\Tests\Helpers\FS;
2
3
use \Helpers\FS;
4
5
class toOctTest extends \PHPUnit_Framework_TestCase
6
{
7
    protected $FS = null;
8
9
    public function setUp()
10
    {
11
        $this->FS = FS::getInstance();
12
    }
13
14
    public function test8StringTo8Success644()
15
    {
16
        $this->assertEquals(0644, $this->FS->toOct('0644'));
17
    }
18
19
    public function test8to8Success644()
20
    {
21
        $this->assertEquals(0644, $this->FS->toOct(0644));
22
    }
23
24
    public function test10to8Error644()
25
    {
26
        $this->assertNotEquals(0644, $this->FS->toOct(644));
27
    }
28
29
    public function test10StringTo8Success644()
30
    {
31
        $this->assertEquals(0644, $this->FS->toOct('644'));
32
    }
33
34
    public function test8StringTo8Success755()
35
    {
36
        $this->assertEquals(0755, $this->FS->toOct('0755'));
37
    }
38
39
    public function test8to8Success755()
40
    {
41
        $this->assertEquals(0755, $this->FS->toOct(0755));
42
    }
43
44
    public function test10to8Error755()
45
    {
46
        $this->assertNotEquals(0755, $this->FS->toOct(755));
47
    }
48
49
    public function test10StringTo8Success755()
50
    {
51
        $this->assertEquals(0755, $this->FS->toOct('755'));
52
    }
53
54
    public function test8StringTo8Success400()
55
    {
56
        $this->assertEquals(0400, $this->FS->toOct('0400'));
57
    }
58
59
    public function test8to8Success400()
60
    {
61
        $this->assertEquals(0400, $this->FS->toOct(0400));
62
    }
63
64
    public function test10to8Error400()
65
    {
66
        $this->assertNotEquals(0400, $this->FS->toOct(400));
67
    }
68
69
    public function test10StringTo8Success400()
70
    {
71
        $this->assertEquals(0400, $this->FS->toOct('400'));
72
    }
73
}