File tree Expand file tree Collapse file tree 7 files changed +21
-0
lines changed
app/code/Magento/Customer/Test/Unit/Controller/Adminhtml/Index
lib/internal/Magento/Framework
App/Test/Unit/Config/Initial
TestFramework/Test/Unit/Unit/Utility Expand file tree Collapse file tree 7 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,9 @@ class ValidateTest extends \PHPUnit_Framework_TestCase
64
64
65
65
public function setUp ()
66
66
{
67
+ if (!function_exists ('libxml_set_external_entity_loader ' )) {
68
+ $ this ->markTestSkipped ('Skipped on HHVM. Will be fixed in MAGETWO-45033 ' );
69
+ }
67
70
$ this ->customer = $ this ->getMockForAbstractClass (
68
71
'Magento\Customer\Api\Data\CustomerInterface ' ,
69
72
[],
Original file line number Diff line number Diff line change @@ -51,6 +51,9 @@ class ReaderTest extends \PHPUnit_Framework_TestCase
51
51
52
52
protected function setUp ()
53
53
{
54
+ if (!function_exists ('libxml_set_external_entity_loader ' )) {
55
+ $ this ->markTestSkipped ('Skipped on HHVM. Will be fixed in MAGETWO-45033 ' );
56
+ }
54
57
$ this ->objectManager = new \Magento \Framework \TestFramework \Unit \Helper \ObjectManager ($ this );
55
58
$ this ->filePath = __DIR__ . '/_files/ ' ;
56
59
$ this ->fileResolverMock = $ this ->getMock ('Magento\Framework\Config\FileResolverInterface ' );
Original file line number Diff line number Diff line change @@ -116,6 +116,9 @@ public function testMergeException()
116
116
*/
117
117
public function testValidate ($ xml , array $ expectedErrors )
118
118
{
119
+ if (!function_exists ('libxml_set_external_entity_loader ' )) {
120
+ $ this ->markTestSkipped ('Skipped on HHVM. Will be fixed in MAGETWO-45033 ' );
121
+ }
119
122
$ dom = new \Magento \Framework \Config \Dom ($ xml , $ this ->validationStateMock );
120
123
$ actualResult = $ dom ->validate (__DIR__ . '/_files/sample.xsd ' , $ actualErrors );
121
124
$ this ->assertEquals (empty ($ expectedErrors ), $ actualResult );
Original file line number Diff line number Diff line change @@ -41,6 +41,9 @@ class FilesystemTest extends \PHPUnit_Framework_TestCase
41
41
42
42
protected function setUp ()
43
43
{
44
+ if (!function_exists ('libxml_set_external_entity_loader ' )) {
45
+ $ this ->markTestSkipped ('Skipped on HHVM. Will be fixed in MAGETWO-45033 ' );
46
+ }
44
47
$ this ->_file = file_get_contents (__DIR__ . '/../_files/reader/config.xml ' );
45
48
$ this ->_fileResolverMock = $ this ->getMock ('Magento\Framework\Config\FileResolverInterface ' );
46
49
$ this ->_converterMock = $ this ->getMock (
Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ class XsdValidatorTest extends \PHPUnit_Framework_TestCase
20
20
21
21
protected function setUp ()
22
22
{
23
+ if (!function_exists ('libxml_set_external_entity_loader ' )) {
24
+ $ this ->markTestSkipped ('Skipped on HHVM. Will be fixed in MAGETWO-45033 ' );
25
+ }
23
26
$ this ->_validator = new \Magento \Framework \TestFramework \Unit \Utility \XsdValidator ();
24
27
$ this ->_xsdSchema = realpath (__DIR__ . '/_files/valid.xsd ' );
25
28
}
Original file line number Diff line number Diff line change @@ -24,6 +24,9 @@ class ConfigTest extends \PHPUnit_Framework_TestCase
24
24
25
25
protected function setUp ()
26
26
{
27
+ if (!function_exists ('libxml_set_external_entity_loader ' )) {
28
+ $ this ->markTestSkipped ('Skipped on HHVM. Will be fixed in MAGETWO-45033 ' );
29
+ }
27
30
$ this ->_objectManager = new \Magento \Framework \TestFramework \Unit \Helper \ObjectManager ($ this );
28
31
$ this ->urnResolver = new \Magento \Framework \Config \Dom \UrnResolver ();
29
32
}
Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ class ParserTest extends \PHPUnit_Framework_TestCase
13
13
14
14
protected function setUp ()
15
15
{
16
+ if (!function_exists ('libxml_set_external_entity_loader ' )) {
17
+ $ this ->markTestSkipped ('Skipped on HHVM. Will be fixed in MAGETWO-45033 ' );
18
+ }
16
19
$ this ->parser = new \Magento \Framework \Xml \Parser ();
17
20
}
18
21
You can’t perform that action at this time.
0 commit comments