Chapters
23 Chapters
|
1:59:49
|
Login to bookmark this video
-
Course Code
Subscribe to download the code!Compatible PHP versions: >=5.4.0, <7.3.0
Subscribe to download the code!Compatible PHP versions: >=5.4.0, <7.3.0
-
This Video
Subscribe to download the video!
Subscribe to download the video!
-
Course Script
Subscribe to download the script!
Subscribe to download the script!
02.
BDD Features
Scroll down to the script below, click on any sentence (including terminal blocks) to jump to that spot in the video!
Subscribe to jump to this part in the video!
This tutorial uses a very old version of Symfony. The fundamentals of Behat are still valid, but integration with Symfony will be different.
What PHP libraries does this tutorial use?
// composer.json
{
"require": {
"php": ">=5.4.0, <7.3.0",
"symfony/symfony": "^2.7", // v2.7.4
"twig/twig": "^1.22", // v1.22.1
"sensio/framework-extra-bundle": "^3.0", // v3.0.16
"doctrine/doctrine-bundle": "^1.5", // v1.5.1
"doctrine/orm": "^2.5", // v2.5.1
"doctrine/doctrine-fixtures-bundle": "^2.2", // v2.2.1
"behat/symfony2-extension": "^2.0" // v2.0.0
},
"require-dev": {
"behat/mink-extension": "^2.0", // v2.0.1
"behat/mink-goutte-driver": "^1.1", // v1.1.0
"behat/mink-selenium2-driver": "^1.2", // v1.2.0
"phpunit/phpunit": "^4.8" // 4.8.18
}
}
10 Comments
Hi there,
Can you clarify the last paragraph from " it will focus our
efforts ....." ? I read it many times but I don't get it.
I understand that in "In order to" we put the feature description from the user perspective and in " I need to be able to" we put the feature description from the developer perspective.
Hey mehdi!
Of course :).
Yes, this is quite a good way of explaining it! So, in the last paragraph, here is what I'm trying to say. If your
In order tois written well, then it will really explain the purpose of this feature: why we are building it, and how the user of this feature will benefit. This is important, because, as developers, it helps us think about the purpose of this feature. So, when I go to build the production admin area, instead of "focusing" on making forms and adding buttons, I'll be thinking about the feature from the user's perspective.Let me give you a real example. If I am not thinking about how the user will actually use our new product admin area, then I might (as a developer) add a lot of extra features that aren't needed - maybe a cool upload widget, or a super fancy text editor. But, if I think about what the admin user actually wants to accomplish, I may realize that some of these features are not actually necessary or even wanted. I might instead think of other ways to improve/build the admin area that will actually help them with their business value. So, it "focuses" us on building the admin area in the correct way: build it for the user.
I hope this helps!
Cheers!
Ah okay. This script is for the previous chapter's video and the previous chapter's script is for this video.
You're right - the videos were flipped! I've fixed that at sha: https://github.com/knpunive...
Thanks!
First challenge not working: "CodeMirror is not defined" in gherkin.js:25
Hey boykodev!
Thanks for informing us about that sneaky bug, we will fix it as soon as possible
Cheers!
Even after one year passed, it's still not working...:(
The message is different though, now it says:
"Your challenge machine shutdown! We do this after awhile for security reasons. Reload the page to get a fresh challenge."
Same for challenges 3.1 and 5
Really liking the challenges in this one!
Cool, keep it going!
"Houston: no signs of life"
Start the conversation!