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 |
|
{ |
tests/VersionsCheckPluginComposerVersionTest.php 1 location
|
@@ 88-94 (lines=7) @@
|
85 |
|
} |
86 |
|
} |
87 |
|
|
88 |
|
private function addComposerPlugin(PluginInterface $plugin) |
89 |
|
{ |
90 |
|
$pluginManagerReflection = new \ReflectionClass($this->composer->getPluginManager()); |
91 |
|
$addPluginReflection = $pluginManagerReflection->getMethod('addPlugin'); |
92 |
|
$addPluginReflection->setAccessible(true); |
93 |
|
$addPluginReflection->invoke($this->composer->getPluginManager(), $plugin); |
94 |
|
} |
95 |
|
} |
96 |
|
|