diff options
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(); |