Skip to content

Commit

Permalink
Skip some tests on HHVM due to a PHPunit bug
Browse files Browse the repository at this point in the history
  • Loading branch information
stof committed Jun 2, 2016
1 parent e041da0 commit e6956c9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
Expand Up @@ -30,6 +30,10 @@ class MemcacheSessionHandlerTest extends \PHPUnit_Framework_TestCase

protected function setUp()
{
if (defined('HHVM_VERSION')) {
$this->markTestSkipped('PHPUnit_MockObject cannot mock the Memcache class on HHVM. See https://github.com/sebastianbergmann/phpunit-mock-objects/pull/289');
}

parent::setUp();
$this->memcache = $this->getMock('Memcache');
$this->storage = new MemcacheSessionHandler(
Expand Down
Expand Up @@ -31,6 +31,10 @@ class MemcachedSessionHandlerTest extends \PHPUnit_Framework_TestCase

protected function setUp()
{
if (defined('HHVM_VERSION')) {
$this->markTestSkipped('PHPUnit_MockObject cannot mock the Memcached class on HHVM. See https://github.com/sebastianbergmann/phpunit-mock-objects/pull/289');
}

parent::setUp();

if (version_compare(phpversion('memcached'), '2.2.0', '>=')) {
Expand Down
Expand Up @@ -135,6 +135,10 @@ public function testReadWriteReadWithNullByte()

public function testReadConvertsStreamToString()
{
if (defined('HHVM_VERSION')) {
$this->markTestSkipped('PHPUnit_MockObject cannot mock the PDOStatement class on HHVM. See https://github.com/sebastianbergmann/phpunit-mock-objects/pull/289');
}

$pdo = new MockPdo('pgsql');
$pdo->prepareResult = $this->getMock('PDOStatement');

Expand All @@ -152,6 +156,10 @@ public function testReadConvertsStreamToString()

public function testReadLockedConvertsStreamToString()
{
if (defined('HHVM_VERSION')) {
$this->markTestSkipped('PHPUnit_MockObject cannot mock the PDOStatement class on HHVM. See https://github.com/sebastianbergmann/phpunit-mock-objects/pull/289');
}

$pdo = new MockPdo('pgsql');
$selectStmt = $this->getMock('PDOStatement');
$insertStmt = $this->getMock('PDOStatement');
Expand Down

0 comments on commit e6956c9

Please sign in to comment.