Тёмный

Symfony 5 HttpClient and TDD Tutorial (Part 1) 

Gary Clarke
Подписаться 17 тыс.
Просмотров 7 тыс.
50% 1

ℹ This is the first of a multi-part tutorial in which I will show you how to consume a 3rd party API using the Http Client and I'll drive out all functionality using test driven development (TDD).
💻Here is the github repo for this tutorial. There is a separate branch for each recording. The branch for this one is called 'part-one'.
github.com/Gar....
🆓 Join garyclarke.tech for course DISCOUNTS and a FREE Docker + PHP course (worth $49)
www.garyclarke...
👇Follow me on Social Media:
Twitter: / garyclarketech
Linkedin: / garyclarketech
💕Show support:
www.paypal.com...
🔗Here are the links I mention in the video:
symfony.com/do...
www.sitepoint....
rapidapi.com/m...

Опубликовано:

 

22 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 18   
@adelhishem1
@adelhishem1 3 года назад
Great video Gary, your workflow is so smooth, looking forward for the next part of this tutorial, thanks for sharing.
@GaryClarkeTech
@GaryClarkeTech 3 года назад
Thanks Adel..I appreciate it! Part 2 will be Thursday 24th.
@ramo012032
@ramo012032 3 года назад
Like always, great content, one of the best chanel out there with symfony content, looking forward for the next part.
@GaryClarkeTech
@GaryClarkeTech 3 года назад
Thanks Ramo..kind words! Part 2 on Thurday 24th.
@ChristoforVrungel
@ChristoforVrungel 3 года назад
Gary, thanks a lot for this video. I'm newbie in Symfony and video very helpful for me.
@GaryClarkeTech
@GaryClarkeTech 3 года назад
Glad you enjoyed...it's part of a series and part 6 will be uploaded on Thursday
@parijke
@parijke 3 года назад
Loved it Gary, never knew the in memory SQlite trick
@GaryClarkeTech
@GaryClarkeTech 3 года назад
Thanks Paul...I promise it will life easier!
@parijke
@parijke 3 года назад
@@GaryClarkeTech It seems that using an SQlite (in-memory) db for test is executing SQL differently? I spend 4 hours finding why my validation tests failed, but they worked in dev (MariaDB) It appears that select * from booking where `from_date` > '2021-02-14 00:00:000000' in MariaDB skips the records with 2021-02-14 as it sees them as equal value. But with SQLite it selects 2021-02-14 as it evaluates '2021-02-14 00:00:000000' as being bigger? Ever noticed this? In the entity I defined the fields using date type.
@GaryClarkeTech
@GaryClarkeTech 3 года назад
@@parijke I vaguely recall a similar issue when I was connecting to an Oracle DB and I used the date type. I ended up changing it to datetime and that resolved the issue.
@thornwebdesign
@thornwebdesign 3 года назад
Video good video indeed
@puffkitty007
@puffkitty007 3 года назад
Thanks for this video Gary! I have a question. I get an error when i use setUp in StockTest.php: Method 'App\Tests\StockTest::setUp()' is not compatible with method 'Symfony\Bundle\FrameworkBundle\Test\KernelTestCase::setUp()' Do you know what causes this problem? Maybe it is because i use symfony 4? If so how can i fix this for symfony 4 because i need to use it for my usecase UPDATE: And also when i change the name of setUp to something like setUpTest and run the test like at 12:25 i get an error message: Error: Call to a member function persist() on null I also get another error: Expected type 'Symfony\Component\HttpKernel\KernelInterface'. Found 'Symfony\Bundle\FrameworkBundle\Test\KernelInterface'.
@absolutedoruiyaaa4736
@absolutedoruiyaaa4736 Год назад
Does this tutorial just not work for Symfony 6? been racking my brain on this and it's constantly doing things differently than you are showing...
@GaryClarkeTech
@GaryClarkeTech Год назад
I can't guarantee that my S5 tutorials will work for S6 but you should be able to adapt them with a bit of help from the docs
@adante407
@adante407 3 года назад
How much PHP should you know before diving into a framework like Symfony or Laravel? And which one would be easier to start with?
@tandemwarhead
@tandemwarhead 3 года назад
Theres no "how much" it's always "as good as you can". You can learn symfony & php basics along the way, but if you know patters, pitfalls of the language, tooling and other advanced techiques - you will be much more effective. Everything comes from experience, so dont hesitate to get yours
@GaryClarkeTech
@GaryClarkeTech 3 года назад
Great queation John. You can start diving in with a few months object oriented PHP experience...BUT...you should continue to learn good object oriented programming practice even when you start using frameworks. A lot of people don't and you can spot them a mile off cos their code is a total mess...no principles or craft applied. As for frameworks...I think Laravel is probably the easiest to start with but there's not as much difference in it as there used to be. Laravel uses a lot of Symfony components under the hood.
Далее
Symfony 5 HttpClient and TDD Tutorial (Part 2)
15:52
Просмотров 2,2 тыс.
Symfony 5 Test Driven Development (TDD) Tutorial
1:25:00
Why is Laravel NOT used in Big Development Projects?
11:53
Symfony 4 | Creating a Microservice (Part 1)
25:41
Просмотров 21 тыс.
Postman Api Testing Tutorial for beginners
16:45
Просмотров 35 тыс.
Why does JavaScript's fetch make me wait TWICE?
6:23
REST API basics with the API Guy @JustSteveKing
1:41:54
Symfony 5 HttpClient and TDD Tutorial (Part 3)
16:54
Просмотров 1,7 тыс.