Symfony 5 HttpClient and TDD Tutorial (Part 1)

  Рет қаралды 7,140

Gary Clarke

Gary Clarke

Күн бұрын

Пікірлер: 18
@adelhishem1
@adelhishem1 4 жыл бұрын
Great video Gary, your workflow is so smooth, looking forward for the next part of this tutorial, thanks for sharing.
@GaryClarkeTech
@GaryClarkeTech 4 жыл бұрын
Thanks Adel..I appreciate it! Part 2 will be Thursday 24th.
@ramo012032
@ramo012032 4 жыл бұрын
Like always, great content, one of the best chanel out there with symfony content, looking forward for the next part.
@GaryClarkeTech
@GaryClarkeTech 4 жыл бұрын
Thanks Ramo..kind words! Part 2 on Thurday 24th.
@parijke
@parijke 4 жыл бұрын
Loved it Gary, never knew the in memory SQlite trick
@GaryClarkeTech
@GaryClarkeTech 4 жыл бұрын
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.
@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
@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'.
@adante407
@adante407 4 жыл бұрын
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 4 жыл бұрын
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 4 жыл бұрын
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.
@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
@thornwebdesign
@thornwebdesign 3 жыл бұрын
Video good video indeed
Symfony 5 HttpClient and TDD Tutorial (Part 3)
16:54
Gary Clarke
Рет қаралды 1,7 М.
Symfony 5 HttpClient and TDD Tutorial (Part 2)
15:52
Gary Clarke
Рет қаралды 2,2 М.
Ozoda - Alamlar (Official Video 2023)
6:22
Ozoda Official
Рет қаралды 10 МЛН
Symfony 5 Test Driven Development (TDD) Tutorial
1:25:00
Gary Clarke
Рет қаралды 46 М.
API Platform Crash Course Part 1: Introduction and Setup
6:09
Gary Clarke
Рет қаралды 12 М.
Symfony 4 | Creating a Microservice (Part 1)
25:41
Qbrain
Рет қаралды 21 М.
PHP Test Doubles - Fakes, Stubs, and Mocks
50:53
Gary Clarke
Рет қаралды 4,2 М.
Delay heavy tasks in Symfony with component Messenger
13:53
Cap Coding
Рет қаралды 5 М.
PHP Testing Tutorial: Test Doubles - PHPUnit Mocks and Stubs
51:15
Symfony 5 HttpClient and TDD Tutorial (Part 4)
15:19
Gary Clarke
Рет қаралды 1,6 М.