QuestionHelperTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
cbo 3
dl 0
loc 9
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetQuestion() 0 6 1
1
<?php
2
3
namespace Bowerphp\Test\Command\Helper;
4
5
use PHPUnit\Framework\TestCase;
6
7
class QuestionHelperTest extends TestCase
8
{
9
    public function testGetQuestion()
10
    {
11
        $helper = new \Bowerphp\Command\Helper\QuestionHelper();
12
        $this->assertEquals('<info>This is a question</info> [<comment>default reply</comment>]: ', $helper->getQuestion('This is a question', 'default reply')->getQuestion());
13
        $this->assertEquals('<info>Another question</info>- ', $helper->getQuestion('Another question', null, '-')->getQuestion());
14
    }
15
}
16