Stupid question ... In Symfony unit test \PHPUnit_Framework_TestCasedocs, classes expand, but in PHPUnit docs test classes expand PHPUnit\Framework\TestCase. Is there any difference, are they the same, or am I missing the subtle PHP function where _equivalent \?
Except that I myself am testing it myself, can I use either one or one in Symfony?
Update . It was useful for me to explain that these two classes are just the difference between the versions of PHPUnit. After my own research and for recording, Symfony 3.1 is still expanding \PHPUnit_Framework_TestCasein its own class KernelTestCase, which provides functional testing for Symfony. In order not to break the code, I am going to play in a safe place and expand WebTestCase, which is inherited from \PHPUnit_Framework_TestCaseduring unit testing with Symfony. Such unit tests still work with PHPUnit 5.6 anyway
source
share