Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ install:

script:
- if [[ $coverage = 1 ]]; then phpdbg -qrr vendor/bin/phpunit --coverage-php build/cov/coverage-phpunit.cov; else vendor/bin/phpunit; fi
- if [[ $coverage = 1 ]]; then for f in $(find features -name '*.feature'); do FEATURE=${f//\//_} phpdbg -qrr vendor/bin/behat --profile coverage $f; done; else vendor/bin/behat; fi
- if [[ $coverage = 1 ]]; then for f in $(find features -name '*.feature'); do FEATURE=${f//\//_} phpdbg -qrr vendor/bin/behat --profile coverage $f || exit $?; done; else vendor/bin/behat; fi
- if [[ $coverage = 1 ]]; then phpdbg -qrr phpcov.phar merge --clover build/logs/clover.xml build/cov; fi
- tests/Fixtures/app/console api:swagger:export > swagger.json && swagger validate swagger.json && rm swagger.json
- if [[ $lint = 1 ]]; then php php-cs-fixer.phar fix --dry-run --diff --no-ansi; fi
Expand Down
6 changes: 3 additions & 3 deletions features/bootstrap/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ public function thereIsACompositeIdentifierObject()
}

$this->manager->flush();
$this->manager->clear();
}

/**
Expand Down Expand Up @@ -472,16 +473,15 @@ public function thereIsARelatedDummyWithFriends($nb)
}

/**
* @Given there is an answer :answer to the question :question
* @Given there is an answer ":answer" to the question ":question"
*/
public function thereIsAnAnswerToTheQuestion($a, $q)
public function thereIsAnAnswerToTheQuestion(string $a, string $q)
{
$answer = new Answer();
$answer->setContent($a);

$question = new Question();
$question->setContent($q);

$question->setAnswer($answer);

$this->manager->persist($answer);
Expand Down