PHPUnit Testing and woocommerce Constant

return defined('WC_VERSION'); should fix since defined() accepts a string as parameter.
https://www.php.net/manual/en/function.defined.php

If you use:
require_once($_SERVER['DOCUMENT_ROOT'].'/wp-load.php'); adjusting your path if the installation is in a subrdir you load all the WP environment including active plugins etc