Skip to content

Commit 1ef2292

Browse files
author
Oleksandr Iegorov
committed
MC-18697: PHP Unit Run Fails on fresh 2.3.2 COMPOSER installation
1 parent 49b6515 commit 1ef2292

File tree

1 file changed

+15
-7
lines changed
  • setup/src/Magento/Setup/Test/Unit/Module/Di/Code/Reader/InstancesNamesList

1 file changed

+15
-7
lines changed

setup/src/Magento/Setup/Test/Unit/Module/Di/Code/Reader/InstancesNamesList/DirectoryTest.php

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77

88
use Magento\Setup\Module\Di\Compiler\Log\Log;
99

10+
/**
11+
* Test for Directory Decorator
12+
* @package Magento\Setup\Test\Unit\Module\Di\Code\Reader\InstancesNamesList
13+
*/
1014
class DirectoryTest extends \PHPUnit\Framework\TestCase
1115
{
1216
/**
@@ -84,11 +88,15 @@ public function testGetList()
8488
['NameSpace1\ClassName2', ['Parent_Class_Name', 'Interface_1', 'Interface_2']]
8589
];
8690

87-
$this->classReaderMock->expects($this->exactly(count($classes)))
91+
$this->classReaderMock->expects(
92+
$this->exactly(
93+
count($classes)
94+
)
95+
)
8896
->method('getParents')
89-
->will($this->returnValueMap(
90-
$parents
91-
));
97+
->will(
98+
$this->returnValueMap($parents)
99+
);
92100

93101
$this->logMock->expects($this->never())
94102
->method('add');
@@ -125,9 +133,9 @@ public function testGetListNoValidation()
125133

126134
$this->classReaderMock->expects($this->exactly(count($classes)))
127135
->method('getParents')
128-
->will($this->returnValueMap(
129-
$parents
130-
));
136+
->will(
137+
$this->returnValueMap($parents)
138+
);
131139

132140
$this->logMock->expects($this->never())
133141
->method('add');

0 commit comments

Comments
 (0)