This is very interesting. I like the idea of creating the test, then implementing the "mock" method to make sure it works, so that when you refactor with actual code, you know it still passes the tests. I'm definitely going to implement this into a project I'm working on now, because currently for "testing" all I'm doing is logging out different inputs to make sure it works, however this automated version is so much nicer because if anything changes I can simply run all the tests rather than manually logging everything again.
assertInternalType() is deprecated and removed in PHPUnit 9. Refactor your test to use assertIsArray(), assertIsBool(), assertIsFloat(), assertIsInt(), assertIsNumeric(), assertIsObject(), assertIsResource(), assertIsString(), assertIsScalar(), assertIsCallable(), or assertIsIterable() instead.
@@sethtaylor7519 If you do not have source code, then you are learning by dictation. One of the MOST IMPORTANT parts to learning is testing your interpretation of what is dictated to you by acting. This action is changing the code for yourself. This largely separates GREAT lessons from GOOD lessons. You have made a Huge oversight on your side Seth.
This is very interesting. I like the idea of creating the test, then implementing the "mock" method to make sure it works, so that when you refactor with actual code, you know it still passes the tests.
I'm definitely going to implement this into a project I'm working on now, because currently for "testing" all I'm doing is logging out different inputs to make sure it works, however this automated version is so much nicer because if anything changes I can simply run all the tests rather than manually logging everything again.
assertInternalType() is deprecated and removed in PHPUnit 9. Refactor your test to use assertIsArray(), assertIsBool(), assertIsFloat(), assertIsInt(), assertIsNumeric(), assertIsObject(), assertIsResource(), assertIsString(), assertIsScalar(), assertIsCallable(), or assertIsIterable() instead.
superb TDD course.
Great Tutorial! I enjoyed following this course! Thank you so much..
Amazing explanation, thank you! This series help me a lot!
Thanks for your time! So cool
Thx for this nice tutorial and your passion
Amazing explanation, thank you!
why not using "this->get()" in returned jsonSerialize() method ?
also not using magic methods like __sleep() in serialisation !
Interested to know the answer too!
thanks man
Great Tutorial. I am beginner and getting every point clearly.
Can you please provide Source Code??
Thanks in advance!!
If you are clearly getting every point, why would you need the source?
@@sethtaylor7519 If you do not have source code, then you are learning by dictation. One of the MOST IMPORTANT parts to learning is testing your interpretation of what is dictated to you by acting. This action is changing the code for yourself. This largely separates GREAT lessons from GOOD lessons. You have made a Huge oversight on your side Seth.
@@matmccann You should copy the code yourself, not get the source. This way you learn much more.
what a weird of way of doing a project. it seems to be the main deliverable is test, not the actual project. thanks
it's to make sure that the result of your methods is always the same even you do refactoring of your codes.