Skip to content

Commit c86a607

Browse files
authored
Merge pull request #1136 from dunglas/fix_master_tests
Fix master tests
2 parents e3c17c8 + 6457f24 commit c86a607

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ install:
3434

3535
script:
3636
- if [[ $coverage = 1 ]]; then phpdbg -qrr vendor/bin/phpunit --coverage-php build/cov/coverage-phpunit.cov; else vendor/bin/phpunit; fi
37-
- 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
37+
- 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
3838
- if [[ $coverage = 1 ]]; then phpdbg -qrr phpcov.phar merge --clover build/logs/clover.xml build/cov; fi
3939
- tests/Fixtures/app/console api:swagger:export > swagger.json && swagger validate swagger.json && rm swagger.json
4040
- if [[ $lint = 1 ]]; then php php-cs-fixer.phar fix --dry-run --diff --no-ansi; fi

features/bootstrap/FeatureContext.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ public function thereIsACompositeIdentifierObject()
401401
}
402402

403403
$this->manager->flush();
404+
$this->manager->clear();
404405
}
405406

406407
/**
@@ -472,16 +473,15 @@ public function thereIsARelatedDummyWithFriends($nb)
472473
}
473474

474475
/**
475-
* @Given there is an answer :answer to the question :question
476+
* @Given there is an answer ":answer" to the question ":question"
476477
*/
477-
public function thereIsAnAnswerToTheQuestion($a, $q)
478+
public function thereIsAnAnswerToTheQuestion(string $a, string $q)
478479
{
479480
$answer = new Answer();
480481
$answer->setContent($a);
481482

482483
$question = new Question();
483484
$question->setContent($q);
484-
485485
$question->setAnswer($answer);
486486

487487
$this->manager->persist($answer);

0 commit comments

Comments
 (0)