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

ComposerTest::testWhichScript()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 5
rs 10
c 1
b 0
f 0
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