Skip to content

Commit 47a4658

Browse files
Skip test for Symfony 2.7
1 parent 677044d commit 47a4658

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ install:
2626
- composer update --prefer-source
2727

2828
script:
29-
- vendor/bin/behat
29+
- vendor/bin/behat --tags=~symfony27
30+
- >
31+
if [ "SYMFONY_VERSION" == "2.7.*" ]; then
32+
vendor/bin/behat --tags=symfony27
33+
fi
3034
3135
notifications:
3236

features/interactive.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ Feature: It is possible to interactively fill in a form from the CLI
5454
)
5555
"""
5656

57+
@symfony27
5758
Scenario: Select a value
5859
When I run the command "form:color_with_choices_as_values" and I provide as input
5960
"""

src/Console/Helper/Question/AlwaysReturnKeyOfChoiceQuestion.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ public function getValidator()
2929
$choices = $this->getChoices();
3030
$errorMessage = $this->_errorMessage;
3131
$multiselect = $this->_multiselect;
32-
$isAssoc = $this->isAssoc($choices);
3332

34-
return function ($selected) use ($choices, $errorMessage, $multiselect, $isAssoc) {
33+
return function ($selected) use ($choices, $errorMessage, $multiselect) {
3534
// Collapse all spaces.
3635
$selectedChoices = str_replace(' ', '', $selected);
3736

0 commit comments

Comments
 (0)