Change needed for the development has changed my phpunit tests?

php
php7.1

#1
  1. App\Test\TestCase\Controller\AppControllerTest::testAdd
    PDOException: SQLSTATE[HY000] [2002] No such file or directory
    I have also changed this:
    if (Configure::read(‘environment’) != ‘live’) {
    ConnectionManager::alias(Configure::read(‘environment’), ‘default’);
    }
    What have I changed so that code from phpunit tests can’t be seen ?

#2