Chapters
29 Chapters
|
2:54:09
|
Login to bookmark this video
-
Course Code
Subscribe to download the code!Compatible PHP versions: ^7.0, <7.4
Subscribe to download the code!Compatible PHP versions: ^7.0, <7.4
-
This Video
Subscribe to download the video!
Subscribe to download the video!
-
Subtitles
Subscribe to download the subtitles!
Subscribe to download the subtitles!
-
Course Script
Subscribe to download the script!
Subscribe to download the script!
29.
CircleCI Artifacts
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!
Keep on Learning!
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
While the fundamentals of PHPUnit haven't changed, this tutorial *is* built on an older version of Symfony and PHPUnit.
What PHP libraries does this tutorial use?
// composer.json
{
"require": {
"php": "^7.0, <7.4",
"composer/package-versions-deprecated": "^1.11", // 1.11.99
"doctrine/doctrine-bundle": "^1.6", // 1.10.3
"doctrine/orm": "^2.5", // v2.7.2
"incenteev/composer-parameter-handler": "^2.0", // v2.1.2
"sensio/distribution-bundle": "^5.0.19", // v5.0.21
"sensio/framework-extra-bundle": "^3.0.2", // v3.0.28
"symfony/monolog-bundle": "^3.1.0", // v3.1.2
"symfony/polyfill-apcu": "^1.0", // v1.6.0
"symfony/swiftmailer-bundle": "^2.3.10", // v2.6.7
"symfony/symfony": "3.3.*", // v3.3.13
"twig/twig": "^1.0||^2.0" // v2.4.4
},
"require-dev": {
"doctrine/data-fixtures": "^1.3", // 1.3.3
"doctrine/doctrine-fixtures-bundle": "^2.3", // v2.4.1
"liip/functional-test-bundle": "^1.8", // 1.8.0
"phpunit/phpunit": "^6.3", // 6.5.2
"sensio/generator-bundle": "^3.0", // v3.1.6
"symfony/phpunit-bridge": "^3.0" // v3.4.30
}
}
13 Comments
Once again, you have created a wonderful tutorial! I learned a lot and like the humor. Thank you so much!
This course is so wonderful!
I learned a lot with it. I knew a little bit about tests, but it helped me consolidating my knowledge and gain more confidence on testing. I learned a lot of new terms and concepts. This course is so complete! It is far from a superficial TDD course that only teaches how to do TDD. This course covered good practices, test doubles, CLI options, functional tests and even continuous integration.
Congrats for the well done course there, Leanna, Andrew and team. ;)
Thank you for the kind words Marcel D. very glad it helped you to learn :)
❤️You've made our day Marcel D.! Thanks for the kind words - I've shared them with the team!
How to setup artifacts?
Hey Akshit,
You can look at this example where we configure storing screenshots on failed Behat tests as artifacts: https://symfonycasts.com/blog/circle-ci-behat-screenshots. But storing artifacts is as easy as a one line copy/pasted code :)
In case you're talking about CircleCI v2 config
I hope this helps!
Cheers!
Thanks for a great and incredibly useful course! I've always known I should do testing, but often it was put off for more "urgent" coding. This course took a very practical approach to teaching it, and I have already employed some techniques on two different projects. Keep up the good work!
Thanks Arne K.!
If you want to go further you can check out our PHPSpec course or Behat course, those tools are so fun and powerful to use.
Cheers!
The only thing missing in this tutorial is functional testing secure areas of the app.
Hey Skylar
Thanks for your feedback. If you are in the need, there is an example about how to do it in the documentation: http://symfony.com/doc/curr...
Or if you preffer, you can take advange of LiipFunctionalTestBundle, it comes with free functionality for login in users and many other useful things
Cheers!
Hey Skylar!
I'll add one more thing in addition to what Diego said, which is actually less helpful, but might clear things even more :). If you want to functionally test a secured area, you don't need to do anything special. The only difference is that the first thing you will do at the beginning of each test is go to /login, fill in the username/password and press submit. You can easily write this code in a way that is re-usable across your tests. The only downside is that this slow your tests down further. But, on the bright side, it's a *true* test: you're using your site JUST like you would in real life. LiipFunctionalTestBundle has some "tricks" to get around this, if you're interested :).
But if you have more specific questions, let us know!
Cheers!
Wonderful tutorial, Thank you so much :) , I am really appreciate this class of tutorial
Hey Jiménez,
Thank YOU for being our user ;) And thanks for your kind words, they help us to make more awesome tutorials :)
Cheers!
"Houston: no signs of life"
Start the conversation!