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)
104
104
return true ;
105
105
}
106
106
}
107
-
108
- public function getClassFinder ()
109
- {
110
- return $ this ->classFinder ;
111
- }
112
107
}
Original file line number Diff line number Diff line change @@ -37,7 +37,11 @@ public function testIdempotence()
37
37
$ functions = spl_autoload_functions ();
38
38
foreach ($ functions as $ function ) {
39
39
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 ]));
41
45
return ;
42
46
}
43
47
}
You can’t perform that action at this time.
0 commit comments