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 /tests/MySqlShimTest.php | |
parent | 7ff945e2bb8f119a9f1fdbf79ce99eaecc420ef9 (diff) | |
download | php7-mysql-shim-c10173c42b022941d425a9a469cf73b5eba4e6fb.zip php7-mysql-shim-c10173c42b022941d425a9a469cf73b5eba4e6fb.tar.gz php7-mysql-shim-c10173c42b022941d425a9a469cf73b5eba4e6fb.tar.bz2 |
Remove socket test
Diffstat (limited to 'tests/MySqlShimTest.php')
-rw-r--r-- | tests/MySqlShimTest.php | 13 |
1 files changed, 0 insertions, 13 deletions
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(); |