Комментарии:
Hi Gary, sick shit! but is the api still working? I'm not able to navigate to the page of the api and not able to fetch any data.. getting a 403 response
gr thijs
Wow ! I didn't think that in-memory DB can be used for unit tests , thank you !
It indeed makes sense, because these DB are temporary, and each test have its own DB... This will avoid me to use mock objects to use the EntityManager then 🙂!
One of the best TDD videos i've seen.
Great content, mate!
Thx Gary, as always your turorials give a lot the usefull stuf and configurations. This one is great!!! ;)
ОтветитьThank you. the only think that I do not understand is why you run `symfony composer` or `symfony PHP instead of just `composer` or `PHP`
ОтветитьFinally some Symfony videos that really worth to watch...great work man
ОтветитьThanks for the video Gary, but i got an issue at 42min in the video. I want to test YahooFinanceApiClientTest in integration folder, and i got 'Undefined property: stdClass::$price' i think its due this line off code: $stockProfile = json_decode($response->getContent())->price; any idea's? Thx
ОтветитьI've been using Symfony and Spring framework and if you learn one you learn the other one without much effort. Both are great frameworks.
ОтветитьHave a question about the first unit test. Isn't this actually integrational test ? Because it interacts with the database ? We are not checking some isolated functionality but creating record and retrieving it.
ОтветитьGreat stuff
ОтветитьGreat tutorial! Thanks.
I am running into an issue though. Somehow it will not set that its running on the test environment. dd($kernel->getEnvironment()) on the DatabasePrimer will output 'dev' and then fail the check. Also it will not call the FakeYahooFinanceApiClient but the regular one. Seems that it is not at all obeying services_test.yaml.
I did compare my code to your repo and all seems fine. I am using Symfony 5.4.
Any ideas?
Amazing, i appreciate your efforts to show us all this stuff in one video, thank you again
ОтветитьI am using a newer version of Symfony. All my tests are fine, but when I run the command, I get a "syntax error" reported from JsonDecode.php. However, there is no other information about what is causing this. I have not debugged yet (I have the hardest time getting xdebug to work with cli apps, but I will get there). Curious if anyone else has come across this error or has any ideas?
ОтветитьIn the price tests, you should test for assertIsNumeric because sometimes it sends back whole dollar amounts with no cents (and it does't display xx.00) when that happens, the test will fail.
ОтветитьThanks Gary, very nicely done.
ОтветитьExcellent tutorial, but you have extracted the finance API to an interface which completely dependent on Yahoo API, the fetch method should not have any arguments bonded to a specific API, maybe the next API does not require the symbol and region.
ОтветитьThis is very helpful. Simple and a good test strategy
ОтветитьThank you very much for this awesome tutorial, even the speech flow is perfect ! It is good to see the concrete process of TDD.
Do you think that it is possible to extend the process from the user story to the set of tests that should be created ?
For exemple which user story could have led to the tests functions ?
Again thanks a lot !
Hmm I have a stupid question maybe :) Should tests belong in the main repo ? On the dev branch ? Or just keep them locally on my machine ? Because eventually what's on the dev branch will eventually be merged in the production and deployed.
ОтветитьThank you so much for this high quality content.
I learned so much from this video and appreciate how you explained all the details.
After I failed with Symfony 5.2 - I had a dependency version conflict with DAMA/doctrine ... - I was able to recode everything with Symfony 5.3 nicely.
Who the hell has disliked this video??))))) Good job lots of thanks!s)
ОтветитьThank you
ОтветитьHi Gary, great course, thanks a lot!
I have created services_test.yaml with fake implementation but functional test is still using Amazon Api instead of fake implementation. I'm using Symfony 5.3. In your video you are using Symfony 5.2. Are there any changes in naming convention for yaml with tesing config?
Thank you. Very useful.
ОтветитьThank you for your premium content.
ОтветитьAwesome! Thanks Gary! :)
ОтветитьLove this, thanks
ОтветитьAmazing demo and great TDD mentoring!
This is great content 👏👏👏
I'd love to see more 🤞
Thanks for your work :)
Just the right length
Ответитьi dont understand, i did everything ike you and i got this error when i tried to run test
Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[HY000]: General error: 1 no such table: product
Thanks a lot !
Ответить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
As for a fresh graduate programmer this course helped me A LOT while solving the technical task required for job application. Thank you, learned so many new things while double watching this course <3
ОтветитьAwesome content Gary!! Will follow it and enjoy it this weekend!
Ответитьawesome :)
ОтветитьAmazing :D If I could, I would have given it a 100 likes, but only one is possible: D
ОтветитьWOW !! this is amazing !! Thank You Gary !!
Ответить