Passed
Push — test ( c3536b...58ca37 )
by Tom
04:23
created

ComposerTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 7
dl 0
loc 22
rs 10
c 2
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testWhichScript() 0 5 1
A testWhichPhp() 0 5 1
1
<?php
2
3
/* this file is part of pipelines */
4
5
namespace Ktomk\Pipelines;
6
7
/**
8
 * @covers \Ktomk\Pipelines\Composer
9
 */
10
class ComposerTest extends TestCase
11
{
12
    /**
13
     * in test the command is phpunit
14
     *
15
     * @return void
16
     */
17
    public function testWhichScript()
18
    {
19
        $this->expectOutputRegex('~/phpunit$~');
20
        Composer::which();
21
        $this->addToAssertionCount(1);
22
    }
23
24
    /**
25
     * @return void
26
     */
27
    public function testWhichPhp()
28
    {
29
        $this->expectOutputRegex('~/php~');
30
        Composer::whichPhp();
31
        $this->addToAssertionCount(1);
32
    }
33
}
34