当我在项目中运行behat
时,我得到以下输出:
[mattias:~/projects/resecond]$ behat (staging✱)
Feature: User
In order to personalize the app
I want to give users the ability to create an
account
Scenario: Finding a specific user # app/tests/acceptance/User.feature:6
Given I request "users/dd40ee60-98d3-11e4-a625-07e5e99a99e6"
Then I get a "200" response
[Symfony\Component\Translation\Exception\InvalidResourceException]
[ERROR 1871] Element '{urn:oasis:names:tc:xliff:document:1.2}target': This element is not expected. Expected is one of ( {urn:oasis:names:tc:xliff:document:1.2}context-group, {urn:oasis:names:tc:xliff:document:1.2}count-group, {urn:oasis:names:tc:xliff:document:1.2}note, {urn:oasis:names:tc:xliff:document:1.2}alt-trans, ##other{urn:oasis:names:tc:xliff:document:1.2}* ). (in /Users/mattiassiofjellvang/Projects/resecond/ - line 40, column 0)
这是我behat.yml
项目根目录中的laravel
文件:
default:
paths:
features: app/tests/acceptance
extensions:
Behat\MinkExtension\Extension:
goutte: ~
base_url: http://my.app/api
这是我的composer.json
:
"behat/behat": "2.5.*",
"behat/mink": "1.5.*",
"behat/mink-extension": "*",
"behat/mink-goutte-driver": "*"
什么错了?我应该写更多的文字,因为SO认为我的帖子主要是代码。我不同意