Completed
Push — master ( e863c2...c0933d )
by Massimiliano
02:46
created

QuestionHelperTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Dependencies 3

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
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
class QuestionHelperTest extends \PHPUnit_Framework_TestCase
6
{
7
    public function testGetQuestion()
8
    {
9
        $helper = new \Bowerphp\Command\Helper\QuestionHelper();
10
        $this->assertEquals('<info>This is a question</info> [<comment>default reply</comment>]: ', $helper->getQuestion('This is a question', 'default reply')->getQuestion());
11
        $this->assertEquals('<info>Another question</info>- ', $helper->getQuestion('Another question', null, '-')->getQuestion());
12
    }
13
}
14