Skip to content

Commit 7dd3cc8

Browse files
committed
MAGETWO-44931: [HHVM] Tests of different groups failed to start
- skipping tests
1 parent 89de069 commit 7dd3cc8

File tree

14 files changed

+42
-0
lines changed

14 files changed

+42
-0
lines changed

app/code/Magento/AdvancedPricingImportExport/Test/Unit/Model/Import/AdvancedPricingTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ class AdvancedPricingTest extends \Magento\ImportExport\Test\Unit\Model\Import\A
123123

124124
public function setUp()
125125
{
126+
if (!function_exists('libxml_set_external_entity_loader')) {
127+
$this->markTestSkipped('Skipped on HHVM. Will be fixed in MAGETWO-45033');
128+
}
126129
parent::setUp();
127130

128131
$this->jsonHelper = $this->getMock(

app/code/Magento/Bundle/Test/Unit/Model/LinkManagementTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ class LinkManagementTest extends \PHPUnit_Framework_TestCase
100100

101101
protected function setUp()
102102
{
103+
if (!function_exists('libxml_set_external_entity_loader')) {
104+
$this->markTestSkipped('Skipped on HHVM. Will be fixed in MAGETWO-45033');
105+
}
103106
$helper = new ObjectManager($this);
104107

105108
$this->productRepository = $this->getMockBuilder('Magento\Catalog\Model\ProductRepository')

app/code/Magento/Bundle/Test/Unit/Model/OptionRepositoryTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ class OptionRepositoryTest extends \PHPUnit_Framework_TestCase
6868

6969
protected function setUp()
7070
{
71+
if (!function_exists('libxml_set_external_entity_loader')) {
72+
$this->markTestSkipped('Skipped on HHVM. Will be fixed in MAGETWO-45033');
73+
}
7174
$this->objectManager = new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this);
7275
$this->productRepositoryMock = $this->getMock('\Magento\Catalog\Api\ProductRepositoryInterface');
7376
$this->typeMock = $this->getMock('\Magento\Bundle\Model\Product\Type', [], [], '', false);

app/code/Magento/Customer/Test/Unit/Controller/Adminhtml/Index/ValidateTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ class ValidateTest extends \PHPUnit_Framework_TestCase
6464

6565
public function setUp()
6666
{
67+
if (!function_exists('libxml_set_external_entity_loader')) {
68+
$this->markTestSkipped('Skipped on HHVM. Will be fixed in MAGETWO-45033');
69+
}
6770
$this->customer = $this->getMockForAbstractClass(
6871
'Magento\Customer\Api\Data\CustomerInterface',
6972
[],

app/code/Magento/MediaStorage/Test/Unit/App/MediaTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ class MediaTest extends \PHPUnit_Framework_TestCase
6060

6161
protected function setUp()
6262
{
63+
if (!function_exists('libxml_set_external_entity_loader')) {
64+
$this->markTestSkipped('Skipped on HHVM. Will be fixed in MAGETWO-45033');
65+
}
6366
$this->closure = function () {
6467
return true;
6568
};

lib/internal/Magento/Framework/App/Test/Unit/Config/Initial/ReaderTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ class ReaderTest extends \PHPUnit_Framework_TestCase
5151

5252
protected function setUp()
5353
{
54+
if (!function_exists('libxml_set_external_entity_loader')) {
55+
$this->markTestSkipped('Skipped on HHVM. Will be fixed in MAGETWO-45033');
56+
}
5457
$this->objectManager = new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this);
5558
$this->filePath = __DIR__ . '/_files/';
5659
$this->fileResolverMock = $this->getMock('Magento\Framework\Config\FileResolverInterface');

lib/internal/Magento/Framework/Config/Test/Unit/DomTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ public function testMergeException()
116116
*/
117117
public function testValidate($xml, array $expectedErrors)
118118
{
119+
if (!function_exists('libxml_set_external_entity_loader')) {
120+
$this->markTestSkipped('Skipped on HHVM. Will be fixed in MAGETWO-45033');
121+
}
119122
$dom = new \Magento\Framework\Config\Dom($xml, $this->validationStateMock);
120123
$actualResult = $dom->validate(__DIR__ . '/_files/sample.xsd', $actualErrors);
121124
$this->assertEquals(empty($expectedErrors), $actualResult);

lib/internal/Magento/Framework/Config/Test/Unit/Reader/FilesystemTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ class FilesystemTest extends \PHPUnit_Framework_TestCase
4141

4242
protected function setUp()
4343
{
44+
if (!function_exists('libxml_set_external_entity_loader')) {
45+
$this->markTestSkipped('Skipped on HHVM. Will be fixed in MAGETWO-45033');
46+
}
4447
$this->_file = file_get_contents(__DIR__ . '/../_files/reader/config.xml');
4548
$this->_fileResolverMock = $this->getMock('Magento\Framework\Config\FileResolverInterface');
4649
$this->_converterMock = $this->getMock(

lib/internal/Magento/Framework/Setup/Test/Unit/ConsoleLoggerTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ class ConsoleLoggerTest extends \PHPUnit_Framework_TestCase
2222

2323
public function setUp()
2424
{
25+
if (!function_exists('libxml_set_external_entity_loader')) {
26+
$this->markTestSkipped('Skipped on HHVM. Will be fixed in MAGETWO-45033');
27+
}
2528
$this->console = $this->getMock('Symfony\Component\Console\Output\OutputInterface', [], [], '', false);
2629
$outputFormatter = $this->getMock(
2730
'Symfony\Component\Console\Formatter\OutputFormatterInterface',

lib/internal/Magento/Framework/TestFramework/Test/Unit/Unit/Utility/XsdValidatorTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ class XsdValidatorTest extends \PHPUnit_Framework_TestCase
2020

2121
protected function setUp()
2222
{
23+
if (!function_exists('libxml_set_external_entity_loader')) {
24+
$this->markTestSkipped('Skipped on HHVM. Will be fixed in MAGETWO-45033');
25+
}
2326
$this->_validator = new \Magento\Framework\TestFramework\Unit\Utility\XsdValidator();
2427
$this->_xsdSchema = realpath(__DIR__ . '/_files/valid.xsd');
2528
}

0 commit comments

Comments
 (0)