yii Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found code example
Example: Class 'PHPUnit_Framework_TestCase' not found in vendor
add to declaration: use PHPUnit\Framework\TestCase
replace "extends PHPUnit_Framework_TestCase" with "extends TestCase"