Browse Source

Fixed HHVM tests (#15330)

* Fixed Ipv6ExpandingWithInvalidValue test on HHVM

* Skip PgSQLCache tests on HHVM
tags/2.0.14
Viktor 7 years ago committed by Alexander Makarov
parent
commit
873c2b6b8f
  1. 3
      tests/framework/caching/PgSQLCacheTest.php
  2. 2
      tests/framework/helpers/IpHelperTest.php

3
tests/framework/caching/PgSQLCacheTest.php

@ -25,6 +25,9 @@ class PgSQLCacheTest extends DbCacheTest
if (!extension_loaded('pdo') || !extension_loaded('pdo_pgsql')) {
$this->markTestSkipped('pdo and pdo_pgsql extensions are required.');
}
if (defined('HHVM_VERSION')) {
$this->markTestSkipped('HHVMs PgSQL implementation does not seem to support blob colums in the way they are used here.');
}
$this->getConnection()->createCommand('
CREATE TABLE IF NOT EXISTS "cache"

2
tests/framework/helpers/IpHelperTest.php

@ -56,7 +56,7 @@ class IpHelperTest extends TestCase
try {
IpHelper::expandIPv6('fa01::1/64');
} catch (\Exception $exception) {
$this->assertSame('inet_pton(): Unrecognized address fa01::1/64', $exception->getMessage());
$this->assertStringEndsWith('Unrecognized address fa01::1/64', $exception->getMessage());
}
}

Loading…
Cancel
Save