diff options
author | Davey Shafik <davey@php.net> | 2020-10-27 08:57:42 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-27 08:57:42 +0000 |
commit | c10173c42b022941d425a9a469cf73b5eba4e6fb (patch) | |
tree | 69a99508019ea16b2290af640f629e63e75bf084 | |
parent | 7ff945e2bb8f119a9f1fdbf79ce99eaecc420ef9 (diff) | |
download | php7-mysql-shim-c10173c42b022941d425a9a469cf73b5eba4e6fb.zip php7-mysql-shim-c10173c42b022941d425a9a469cf73b5eba4e6fb.tar.gz php7-mysql-shim-c10173c42b022941d425a9a469cf73b5eba4e6fb.tar.bz2 |
Remove socket test
-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(); |