File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
src/Symfony/Component/ClassLoader Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -104,9 +104,4 @@ public function loadClass($class)
104104 return true ;
105105 }
106106 }
107-
108- public function getClassFinder ()
109- {
110- return $ this ->classFinder ;
111- }
112107}
Original file line number Diff line number Diff line change @@ -37,7 +37,11 @@ public function testIdempotence()
3737 $ functions = spl_autoload_functions ();
3838 foreach ($ functions as $ function ) {
3939 if (is_array ($ function ) && $ function [0 ] instanceof DebugClassLoader) {
40- $ this ->assertNotInstanceOf ('Symfony\Component\ClassLoader\DebugClassLoader ' , $ function [0 ]->getClassFinder ());
40+ $ reflClass = new \ReflectionClass ($ function [0 ]);
41+ $ reflProp = $ reflClass ->getProperty ('classFinder ' );
42+ $ reflProp ->setAccessible (true );
43+
44+ $ this ->assertNotInstanceOf ('Symfony\Component\ClassLoader\DebugClassLoader ' , $ reflProp ->getValue ($ function [0 ]));
4145 return ;
4246 }
4347 }
You can’t perform that action at this time.
0 commit comments