ComposeFileTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testCreateCompseFileSuccess() 0 4 1
A testCreateCompseFileFailed() 0 3 1
1
<?php
2
3
namespace DockerCompose\Tests;
4
5
use PHPUnit_Framework_TestCase;
6
use DockerCompose\ComposeFile;
7
8
9
class ComposeFileTest extends PHPUnit_Framework_TestCase
10
{
11
    /**
12
     * Test create file success
13
     */
14
    public function testCreateCompseFileSuccess() {
15
        $file = new ComposeFile('docker-compose.yml');
16
        $this->assertEquals('docker-compose.yml', $file->getFileName());
17
    }
18
19
    /**
20
     * Test create file failed
21
     *
22
     * @expectedException Exception
23
     */
24
    public function testCreateCompseFileFailed() {
25
        new ComposeFile(25);
26
    }
27
}
28