In my phpunit test I require_once
an api_key.php
that of course I have in my .gitignore (it contains my own api keys).
<?php
namespace Domoticzapi;
use PHPUnit\Framework\TestCase;
require_once('api_key.php');
class ClientTest extends TestCase {
}
Scrutinizer complains with
PHP Warning: require_once(api_key.php): failed to open stream: No such file or directory in /home/scrutinizer/build/tests/Domoticzapi/ClientTest.php on line 6
How can I exclude this check? Or is there a best approach (other than environment variables that I don't want use)?