Skip to content

Commit c9be9e5

Browse files
committed
Merge remote-tracking branch 'tango/MC-18697' into PR-08-233
2 parents 6c20141 + 6e3db0b commit c9be9e5

File tree

1 file changed

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

1 file changed

+23
-7
lines changed

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

Lines changed: 23 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');
@@ -191,4 +199,12 @@ public function getListExceptionDataProvider()
191199
[new \ReflectionException('Not Valid!')]
192200
];
193201
}
202+
203+
/**
204+
* @inheritdoc
205+
*/
206+
protected function tearDown()
207+
{
208+
restore_error_handler();
209+
}
194210
}

0 commit comments

Comments
 (0)