diff options
-rw-r--r-- | .github/workflows/phpunit.yaml | 1 | ||||
-rw-r--r-- | tests/MySqlShimTest.php | 13 |
2 files changed, 0 insertions, 14 deletions
diff --git a/.github/workflows/phpunit.yaml b/.github/workflows/phpunit.yaml index 347e795..95c09f2 100644 --- a/.github/workflows/phpunit.yaml +++ b/.github/workflows/phpunit.yaml @@ -37,7 +37,6 @@ jobs: - name: Run Tests run: composer run test -- --coverage-text env: - CI: true MYSQL_HOST: 127.0.0.1:${{ job.services.mysql.ports['3306'] }} MYSQL_USERNAME: root MYSQL_PASSWORD: password diff --git a/tests/MySqlShimTest.php b/tests/MySqlShimTest.php index 2d921f8..ae2bbbc 100644 --- a/tests/MySqlShimTest.php +++ b/tests/MySqlShimTest.php @@ -28,11 +28,6 @@ class MySqlShimTest extends \Yoast\PHPUnitPolyfills\TestCases\TestCase */ protected static $dbs = array(); - /** - * @var \SebastianBergmann\Environment\Runtime - */ - protected $runtime; - public function __construct($name = null, array $data = array(), $dataName = '') { if (getenv('MYSQL_HOST') !== false) { @@ -48,7 +43,6 @@ class MySqlShimTest extends \Yoast\PHPUnitPolyfills\TestCases\TestCase } parent::__construct($name, $data, $dataName); - $this->runtime = new \SebastianBergmann\Environment\Runtime(); } public function test_mysql_connect() @@ -76,13 +70,6 @@ class MySqlShimTest extends \Yoast\PHPUnitPolyfills\TestCases\TestCase $this->assertConnection($mysql); } - public function test_mysql_connect_socket() - { - $this->expectWarning(); - $this->expectWarningMessageMatches('/^mysql(i?)_connect\(\): \(HY000\/2002\): No such file or directory$/'); - mysql_connect(':/var/run/mysqld/mysqld.sock', null, null); - } - public function test_mysql_connect_fail_warning() { $this->expectWarning(); |