Merge branch '1.6'
commit
16dcb04e1d
|
@ -240,6 +240,7 @@ class ConsoleIOTest extends TestCase
|
||||||
$this->isInstanceOf('Symfony\Component\Console\Output\OutputInterface'),
|
$this->isInstanceOf('Symfony\Component\Console\Output\OutputInterface'),
|
||||||
$this->isInstanceOf('Symfony\Component\Console\Question\Question')
|
$this->isInstanceOf('Symfony\Component\Console\Question\Question')
|
||||||
)
|
)
|
||||||
|
->will($this->returnValue(array('item2')));
|
||||||
;
|
;
|
||||||
|
|
||||||
$setMock
|
$setMock
|
||||||
|
@ -250,7 +251,8 @@ class ConsoleIOTest extends TestCase
|
||||||
;
|
;
|
||||||
|
|
||||||
$consoleIO = new ConsoleIO($inputMock, $outputMock, $setMock);
|
$consoleIO = new ConsoleIO($inputMock, $outputMock, $setMock);
|
||||||
$consoleIO->select('Select item', array("item1", "item2"), null, false, "Error message", true);
|
$result = $consoleIO->select('Select item', array("item1", "item2"), null, false, "Error message", true);
|
||||||
|
$this->assertEquals(array('1'), $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testSetAndgetAuthentication()
|
public function testSetAndgetAuthentication()
|
||||||
|
|
Loading…
Reference in New Issue