I only get acquainted with the compositor and unit tests. Installed unit tests through the composer. This is what a json file looks like:
{ "require": { "symfony/var-dumper": "dev-master", "phpunit/phpunit": "^7.4" } } When I tried to create a class inherited from PHPUnit_Framework_TestCase, I received a fatal error - that such a class was not found ..
On ofts. PHPUnit site, I saw the following record \ PHPUnit \ Framework \ TestCase - which helped:
class AppTest extends \PHPUnit\Framework\TestCase {...} As I understand it, is it related to the psr-0 and psr-4 standards? How is this configured for the composer? In which cases can one type of record be used, in which - the second (through the underscore together of the backslash)? What are the advantages of one and the second?
I also wanted to understand whether it is possible to change the location of the vendor folder of the composer, how to do it, and what is the risk?