1
my problem apparently is simple but I can not solve.
I decided to do tests on my application, and at first I had problems
I run the following command line to run the test:
vendor/bin/phpunit
In the test I’m just instantiating the User class:
$user = \Escola\User;
And I get the following error message:
[Symfony\Component\Debug\Exception\FatalErrorException] Undefined constant 'Escola\User' Fatal error: Undefined constant 'Escola\User' in /home/f15/Desktop/escola/tests/PedidoTest.php on line 11
tried to put a
new
before\Escola\User
?– RFL