K
K
khariv29072020-04-25 19:53:59
PHPUnit
khariv2907, 2020-04-25 19:53:59

Why doesn't PHPUnit see Laravel Facades?

TestCase:
Dr8BvPBHz3dYa2.jpg

CreatesApplication:
LmGB8nBHJjv53r.jpg

Test itself:
bmo1kJ1h91wWNA.jpg

Method being tested:
E2pyVpyHa0w1nA.jpg

Command:

php vendor/phpunit/phpunit/phpunit --configuration phpunit.xml tests/Unit


Versions:
laravel 7
PHP 7.4
PHPUnit 9

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Gordinskiy, 2020-04-25
@DmitriyGordinskiy

Is the path to the autoload file correct in the PHPUnit settings?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question