tests/VersionsCheckPluginComposerVersionTest.php 1 location
|
@@ 83-89 (lines=7) @@
|
80 |
|
} |
81 |
|
} |
82 |
|
|
83 |
|
private function addComposerPlugin(PluginInterface $plugin) |
84 |
|
{ |
85 |
|
$pluginManagerReflection = new \ReflectionClass($this->composer->getPluginManager()); |
86 |
|
$addPluginReflection = $pluginManagerReflection->getMethod('addPlugin'); |
87 |
|
$addPluginReflection->setAccessible(true); |
88 |
|
$addPluginReflection->invoke($this->composer->getPluginManager(), $plugin); |
89 |
|
} |
90 |
|
} |
91 |
|
|
tests/VersionsCheckPluginTest.php 1 location
|
@@ 249-255 (lines=7) @@
|
246 |
|
); |
247 |
|
} |
248 |
|
|
249 |
|
private function addComposerPlugin(PluginInterface $plugin) |
250 |
|
{ |
251 |
|
$pluginManagerReflection = new \ReflectionClass($this->composer->getPluginManager()); |
252 |
|
$addPluginReflection = $pluginManagerReflection->getMethod('addPlugin'); |
253 |
|
$addPluginReflection->setAccessible(true); |
254 |
|
$addPluginReflection->invoke($this->composer->getPluginManager(), $plugin); |
255 |
|
} |
256 |
|
|
257 |
|
private function assertSameOutput($expectedOutput, $message = '') |
258 |
|
{ |