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

QuestionHelperTest::testGetQuestion()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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