QuestionHelperTest::testGetQuestion()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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