Error when setting up phpunit tests with wp-cli scaffold

If you’re on Windows, open wp-tests-config.php and change the ABSPATH with absolute path to your TEMP folder. For example:

define( 'ABSPATH', 'C:\Users\{User}\AppData\Local\Temp/wordpress/' );

I changed this and phpunit worked! This code is on line 7 in %TEMP%/wordpress-tests-lib/wp-tests-config.php

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)