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 77
88use 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+ */
1014class 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}
You can’t perform that action at this time.
0 commit comments