79303423

Date: 2024-12-23 14:56:34
Score: 1
Natty:
Report link

In my case I was trying to run a test using php unit and when typing:

class <classname> extends TestCase

it was importing TestCase class automatically as "Tests\TestCase".

Changing it to :

use PHPUnit\Framework\TestCase;

solved it for me.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Kayler Moura