File tree Expand file tree Collapse file tree 1 file changed +23
-7
lines changed
setup/src/Magento/Setup/Test/Unit/Module/Di/Code/Reader/InstancesNamesList Expand file tree Collapse file tree 1 file changed +23
-7
lines changed Original file line number Diff line number Diff line change 7
7
8
8
use Magento \Setup \Module \Di \Compiler \Log \Log ;
9
9
10
+ /**
11
+ * Test for Directory Decorator
12
+ * @package Magento\Setup\Test\Unit\Module\Di\Code\Reader\InstancesNamesList
13
+ */
10
14
class DirectoryTest extends \PHPUnit \Framework \TestCase
11
15
{
12
16
/**
@@ -84,11 +88,15 @@ public function testGetList()
84
88
['NameSpace1\ClassName2 ' , ['Parent_Class_Name ' , 'Interface_1 ' , 'Interface_2 ' ]]
85
89
];
86
90
87
- $ this ->classReaderMock ->expects ($ this ->exactly (count ($ classes )))
91
+ $ this ->classReaderMock ->expects (
92
+ $ this ->exactly (
93
+ count ($ classes )
94
+ )
95
+ )
88
96
->method ('getParents ' )
89
- ->will ($ this -> returnValueMap (
90
- $ parents
91
- )) ;
97
+ ->will (
98
+ $ this -> returnValueMap ( $ parents)
99
+ );
92
100
93
101
$ this ->logMock ->expects ($ this ->never ())
94
102
->method ('add ' );
@@ -125,9 +133,9 @@ public function testGetListNoValidation()
125
133
126
134
$ this ->classReaderMock ->expects ($ this ->exactly (count ($ classes )))
127
135
->method ('getParents ' )
128
- ->will ($ this -> returnValueMap (
129
- $ parents
130
- )) ;
136
+ ->will (
137
+ $ this -> returnValueMap ( $ parents)
138
+ );
131
139
132
140
$ this ->logMock ->expects ($ this ->never ())
133
141
->method ('add ' );
@@ -191,4 +199,12 @@ public function getListExceptionDataProvider()
191
199
[new \ReflectionException ('Not Valid! ' )]
192
200
];
193
201
}
202
+
203
+ /**
204
+ * @inheritdoc
205
+ */
206
+ protected function tearDown ()
207
+ {
208
+ restore_error_handler ();
209
+ }
194
210
}
You can’t perform that action at this time.
0 commit comments